staging: lustre: include: linux: libcfs: Removed unnecessary else expression.
[firefly-linux-kernel-4.4.55.git] / drivers / staging / lustre / include / linux / libcfs / libcfs.h
index 1122ae963677640ce7ee79b78fa268e151fcff37..a6b2f906bb1ab49fa2c84b31791db6f83f587d7c 100644 (file)
@@ -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) \