Staging: lustre: lustre: idlm: Move trailing statement to next line
authorHaneen Mohammed <hamohammed.sa@gmail.com>
Sat, 28 Feb 2015 19:20:14 +0000 (22:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 00:44:34 +0000 (16:44 -0800)
This patch Fix both "trailing statement should be on next line"
and space before semicolon errors addressed by checkpatch.pl

Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_extent.c

index a89eebaedabfe54fa9391fcc531ea88f42f8d9b1..fd9b059361f934ea2c67ca191d82c24b691626a2 100644 (file)
@@ -151,7 +151,8 @@ static inline int lock_mode_to_index(ldlm_mode_t mode)
 
        LASSERT(mode != 0);
        LASSERT(IS_PO2(mode));
-       for (index = -1; mode; index++, mode >>= 1) ;
+       for (index = -1; mode; index++)
+               mode >>= 1;
        LASSERT(index < LCK_MODE_NUM);
        return index;
 }
This page took 0.025184 seconds and 5 git commands to generate.