summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorSeongJae Park2014-04-08 00:38:28 +0200
committerLinus Torvalds2014-04-08 01:36:03 +0200
commit5d2d42de185b77b4bc60b5ac77386c4099d71bf3 (patch)
treea1f7bfaf2ee6b254739137b00e5c9acc0c43cf97 /mm
parentmm/zswap: support multiple swap devices (diff)
downloadkernel-qcow2-linux-5d2d42de185b77b4bc60b5ac77386c4099d71bf3.tar.gz
kernel-qcow2-linux-5d2d42de185b77b4bc60b5ac77386c4099d71bf3.tar.xz
kernel-qcow2-linux-5d2d42de185b77b4bc60b5ac77386c4099d71bf3.zip
mm/zswap.c: remove unnecessary parentheses
Fix following trivial checkpatch error: ERROR: return is not a function, parentheses are not required Signed-off-by: SeongJae Park <sj38.park@gmail.com> Acked-by: Seth Jennings <sjennings@variantweb.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/zswap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/zswap.c b/mm/zswap.c
index c0c9b7c80c05..34b75cc70827 100644
--- a/mm/zswap.c
+++ b/mm/zswap.c
@@ -204,7 +204,7 @@ static struct kmem_cache *zswap_entry_cache;
static int zswap_entry_cache_create(void)
{
zswap_entry_cache = KMEM_CACHE(zswap_entry, 0);
- return (zswap_entry_cache == NULL);
+ return zswap_entry_cache == NULL;
}
static void zswap_entry_cache_destory(void)
@@ -408,8 +408,8 @@ cleanup:
**********************************/
static bool zswap_is_full(void)
{
- return (totalram_pages * zswap_max_pool_percent / 100 <
- zswap_pool_pages);
+ return totalram_pages * zswap_max_pool_percent / 100 <
+ zswap_pool_pages;
}
/*********************************