]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: lustre: Fix return in void function warning
authorDarshana Padmadas <darshanapadmadas@gmail.com>
Wed, 17 Sep 2014 15:28:43 +0000 (20:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Sep 2014 00:34:34 +0000 (17:34 -0700)
This fixes checkpatch.pl warning:

WARNING: void function return statements are not generally useful

Signed-off-by: Darshana Padmadas <darshanapadmadas@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/libcfs_prim.h

index a38209506d6c4469873c99189233166e1fb066f3..978d3e2f16d3ddab44dcac70435ec80a94fd6458 100644 (file)
@@ -83,6 +83,5 @@ static inline void cfs_memory_pressure_restore(int old)
                memory_pressure_set();
        else
                memory_pressure_clr();
-       return;
 }
 #endif