Skip to content

Commit 4467a94

Browse files
darshanapdasgregkh
authored andcommitted
Staging: lustre: libcfs: fix checkpatch warning else after return statement
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>
1 parent f5740b2 commit 4467a94

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/staging/lustre/include/linux/libcfs/libcfs_fail.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ static inline int cfs_fail_timeout_set(__u32 id, __u32 value, int ms, int set)
124124
{
125125
if (unlikely(CFS_FAIL_PRECHECK(id)))
126126
return __cfs_fail_timeout_set(id, value, ms, set);
127-
else
128-
return 0;
127+
return 0;
129128
}
130129

131130
/* If id hit cfs_fail_loc, sleep for seconds or milliseconds */

0 commit comments

Comments
 (0)