X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Ferr.h;h=17c55df13615a9bda172e80c6f4711c11f3183e8;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=92cab64fdd837fb1f7c357404586e24ce46f3029;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/include/linux/err.h b/include/linux/err.h index 92cab64fd..17c55df13 100644 --- a/include/linux/err.h +++ b/include/linux/err.h @@ -1,6 +1,8 @@ #ifndef _LINUX_ERR_H #define _LINUX_ERR_H +#include + #include /* @@ -23,7 +25,7 @@ static inline long PTR_ERR(const void *ptr) static inline long IS_ERR(const void *ptr) { - return (unsigned long)ptr > (unsigned long)-1000L; + return unlikely((unsigned long)ptr > (unsigned long)-1000L); } #endif /* _LINUX_ERR_H */