Browse Source

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 <gulsah.1004@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Gulsah Kose 11 years ago
parent
commit
fa44eae464
1 changed files with 1 additions and 2 deletions
  1. 1 2
      drivers/staging/lustre/include/linux/libcfs/libcfs.h

+ 1 - 2
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) \