]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
staging: android: Assign bool to true
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Wed, 22 Oct 2014 05:53:57 +0000 (11:23 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Oct 2014 04:38:32 +0000 (12:38 +0800)
high is a bool type variable.

bool variable should be assigned true, false not 1 or 0.

This patch assigns high to true, replacing 1.

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_page_pool.c

index 5864f3dfcbc62571cf1c3cd9e0450fbd09a7586e..4b88f11e52d372ff3b33c5d448852fcddfeaac5c 100644 (file)
@@ -120,7 +120,7 @@ int ion_page_pool_shrink(struct ion_page_pool *pool, gfp_t gfp_mask,
        bool high;
 
        if (current_is_kswapd())
-               high = 1;
+               high = true;
        else
                high = !!(gfp_mask & __GFP_HIGHMEM);