]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/err.h
lz4: fix wrong compress buffer size for 64-bits
[karo-tx-linux.git] / include / linux / err.h
index a729120644d59d639ff00f4ad5f095e6b024df28..56762ab4171331f87f6ca9930a32d816b7aba581 100644 (file)
@@ -37,7 +37,7 @@ static inline bool __must_check IS_ERR(__force const void *ptr)
 
 static inline bool __must_check IS_ERR_OR_NULL(__force const void *ptr)
 {
-       return !ptr || IS_ERR_VALUE((unsigned long)ptr);
+       return unlikely(!ptr) || IS_ERR_VALUE((unsigned long)ptr);
 }
 
 /**