mm: zswap: remove unnecessary parentheses
Subsystems (2)
PATCH 1/1 mm: zswap: remove unnecessary parentheses
Fix following trivial checkpatch error:
ERROR: return is not a function, parentheses are not required
Signed-off-by SeongJae Park <[email protected]>
--- mm/zswap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
mm/zswap.c +3 -3
@@ -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; }/*********************************
Signature · 7 lines
1.8.3.2 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 4 lines · SeongJae Park
Fix following trivial checkpatch error:
ERROR: return is not a function, parentheses are not requiredSigned-off-by SeongJae Park <[email protected]>
Thanks for the cleanup.
Might copy [email protected] on patches like this in the future.
Acked-by Seth Jennings <[email protected]>
Quoted 36 lines
--- mm/zswap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)mm/zswap.c +3
-3@@ -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; }/********************************* Signature · 7 lines
1.8.3.2 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>