提交 5d2d42de 编写于 作者: S SeongJae Park 提交者: Linus Torvalds

mm/zswap.c: remove unnecessary parentheses

Fix following trivial checkpatch error:

  ERROR: return is not a function, parentheses are not required
Signed-off-by: NSeongJae Park <sj38.park@gmail.com>
Acked-by: NSeth Jennings <sjennings@variantweb.net>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 60105e12
...@@ -204,7 +204,7 @@ static struct kmem_cache *zswap_entry_cache; ...@@ -204,7 +204,7 @@ static struct kmem_cache *zswap_entry_cache;
static int zswap_entry_cache_create(void) static int zswap_entry_cache_create(void)
{ {
zswap_entry_cache = KMEM_CACHE(zswap_entry, 0); 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) static void zswap_entry_cache_destory(void)
...@@ -408,8 +408,8 @@ static int zswap_cpu_init(void) ...@@ -408,8 +408,8 @@ static int zswap_cpu_init(void)
**********************************/ **********************************/
static bool zswap_is_full(void) static bool zswap_is_full(void)
{ {
return (totalram_pages * zswap_max_pool_percent / 100 < return totalram_pages * zswap_max_pool_percent / 100 <
zswap_pool_pages); zswap_pool_pages;
} }
/********************************* /*********************************
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册