From 4467a945fc08c0d6624b1dd64cfcc2cbd3b3dee3 Mon Sep 17 00:00:00 2001 From: Darshana Padmadas Date: Wed, 17 Sep 2014 18:14:45 +0530 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/lustre/include/linux/libcfs/libcfs_fail.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs_fail.h b/drivers/staging/lustre/include/linux/libcfs/libcfs_fail.h index e5231d8f4d11..eea55d94e6be 100644 --- a/drivers/staging/lustre/include/linux/libcfs/libcfs_fail.h +++ b/drivers/staging/lustre/include/linux/libcfs/libcfs_fail.h @@ -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 */ -- 2.20.1