OSDN Git Service

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 5864f3d..4b88f11 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);