Skip to content

Commit fa44eae

Browse files
GulsahKosegregkh
authored andcommitted
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>
1 parent c2ad80e commit fa44eae

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • drivers/staging/lustre/include/linux/libcfs

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,7 @@ static inline void *__container_of(void *ptr, unsigned long shift)
173173
{
174174
if (unlikely(IS_ERR(ptr) || ptr == NULL))
175175
return ptr;
176-
else
177-
return (char *)ptr - shift;
176+
return (char *)ptr - shift;
178177
}
179178

180179
#define container_of0(ptr, type, member) \

0 commit comments

Comments
 (0)