From: Qi Zheng Date: Sun, 19 Dec 2021 02:41:54 +0000 (+0800) Subject: cpuset: convert 'allowed' in __cpuset_node_allowed() to be boolean X-Git-Tag: v5.17-rc1~163^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d4296faebd337e5f76c0fddb815de33d2b0ad118;p=thirdparty%2Fkernel%2Flinux.git cpuset: convert 'allowed' in __cpuset_node_allowed() to be boolean Convert 'allowed' in __cpuset_node_allowed() to be boolean since the return types of node_isset() and __cpuset_node_allowed() are both boolean. Signed-off-by: Qi Zheng Signed-off-by: Tejun Heo --- diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index 0dd7d853ed17a..dc653ab26e50e 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -3528,7 +3528,7 @@ static struct cpuset *nearest_hardwall_ancestor(struct cpuset *cs) bool __cpuset_node_allowed(int node, gfp_t gfp_mask) { struct cpuset *cs; /* current cpuset ancestors */ - int allowed; /* is allocation in zone z allowed? */ + bool allowed; /* is allocation in zone z allowed? */ unsigned long flags; if (in_interrupt())