Staging: zcache: remove unnecessary braces in zcache-main.c
authorRyo Munakata <ryomnktml@gmail.com>
Sat, 26 Jan 2013 10:50:53 +0000 (19:50 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2013 04:22:16 +0000 (23:22 -0500)
This fixes a checkpatch.pl issue of
'braces {} are not necessary for single statement blocks'

Signed-off-by: Ryo Munakata <ryomnktml@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zcache/zcache-main.c

index 6ab13e123e7b411f4ca906d1143445441638f184..c1ac905759bdfccc2777193032a0c65da059b58b 100644 (file)
@@ -1017,11 +1017,10 @@ static int zcache_frontswap_unuse(void)
                unuse_ret = frontswap_unuse(type, offset,
                                newpage2 != NULL ? newpage2 : evictpage2,
                                ZCACHE_GFP_MASK);
-               if (unuse_ret != 0) {
+               if (unuse_ret != 0)
                        goto free_and_out;
-               } else if (evictpage2 != NULL) {
+               else if (evictpage2 != NULL)
                        zcache_unacct_page();
-               }
        }
        ret = 0;
        goto out;