From a1a247e5f29350a7734bd3f0fdbc41418c3066a2 Mon Sep 17 00:00:00 2001 From: nfshp Date: Sun, 9 Mar 2003 07:53:03 +0000 Subject: [PATCH] fix IS_ERR macro: return 0/NULL is sign of success. --- lustre/include/liblustre.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/include/liblustre.h b/lustre/include/liblustre.h index 0b37021..08226e8 100644 --- a/lustre/include/liblustre.h +++ b/lustre/include/liblustre.h @@ -93,7 +93,7 @@ static inline void *kmalloc(int size, int prot) #define kfree(a) free(a) #define GFP_KERNEL 1 #define GFP_HIGHUSER 1 -#define IS_ERR(a) (abs((int)(a)) < 500 ? 1 : 0) +#define IS_ERR(a) ((abc && abs((int)(a)) < 500) ? 1 : 0) #define PTR_ERR(a) ((int)(a)) #define capable(foo) 1 -- 1.8.3.1