Skip to content

Commit d4296fa

Browse files
Qi Zhenghtejun
authored andcommitted
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 <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent f5f60d2 commit d4296fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/cgroup/cpuset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3528,7 +3528,7 @@ static struct cpuset *nearest_hardwall_ancestor(struct cpuset *cs)
35283528
bool __cpuset_node_allowed(int node, gfp_t gfp_mask)
35293529
{
35303530
struct cpuset *cs; /* current cpuset ancestors */
3531-
int allowed; /* is allocation in zone z allowed? */
3531+
bool allowed; /* is allocation in zone z allowed? */
35323532
unsigned long flags;
35333533

35343534
if (in_interrupt())

0 commit comments

Comments
 (0)