Staging: lustre: libcfs: fix checkpatch warning else after return statement
authorDarshana Padmadas <darshanapadmadas@gmail.com>
Wed, 17 Sep 2014 12:44:45 +0000 (18:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Sep 2014 00:29:34 +0000 (17:29 -0700)
Fix checkpatch warning by removing unnecessary else after return statement.

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

index e5231d8..eea55d9 100644 (file)
@@ -124,8 +124,7 @@ static inline int cfs_fail_timeout_set(__u32 id, __u32 value, int ms, int set)
 {
        if (unlikely(CFS_FAIL_PRECHECK(id)))
                return __cfs_fail_timeout_set(id, value, ms, set);
-       else
-               return 0;
+       return 0;
 }
 
 /* If id hit cfs_fail_loc, sleep for seconds or milliseconds */