likely() doesn't take pointers in Linux 2.4, give it an integer
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Mon, 12 May 2008 01:42:34 +0000 (01:42 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Mon, 12 May 2008 01:42:34 +0000 (01:42 +0000)
This should fix #1932

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3625 0192ed92-7a03-0410-a25b-9323aeb14dbd

include/compat.h

index d2241779eb931de1d9ebb1f56c9698310c7b3909..434f2cf83dcde76276f4e6d464d2e2677115fcce 100644 (file)
@@ -66,7 +66,7 @@ typedef int gfp_t;
 static inline void *kzalloc(size_t size, gfp_t flags)
 {
        void *p = kmalloc(size, flags);
-       if (likely(p))
+       if (likely(p != NULL))
                memset(p, 0, size);
        return p;
 }