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>
This commit is contained in:
parent
c2ad80e45b
commit
fa44eae464
|
@ -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) \
|
||||
|
|
Loading…
Reference in New Issue