From: Gulsah Kose Date: Tue, 30 Sep 2014 18:59:21 +0000 (+0300) Subject: staging: lustre: include: linux: libcfs: Removed unnecessary else expression. X-Git-Tag: v5.15~17125^2~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa44eae464430475334264e3045d42b708c5a6d7;p=platform%2Fkernel%2Flinux-starfive.git staging: lustre: include: linux: libcfs: Removed unnecessary else expression. This patch fixes "else is not generally useful after a break or return" checkpatch.pl warning libcfs.h Signed-off-by: Gulsah Kose Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs.h b/drivers/staging/lustre/include/linux/libcfs/libcfs.h index 1122ae9..a6b2f90 100644 --- a/drivers/staging/lustre/include/linux/libcfs/libcfs.h +++ b/drivers/staging/lustre/include/linux/libcfs/libcfs.h @@ -173,8 +173,7 @@ static inline void *__container_of(void *ptr, unsigned long shift) { if (unlikely(IS_ERR(ptr) || ptr == NULL)) return ptr; - else - return (char *)ptr - shift; + return (char *)ptr - shift; } #define container_of0(ptr, type, member) \