likely() doesn't take pointers in Linux 2.4, give it an integer

This should fix #1932


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3625 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
proski 2008-05-12 01:42:34 +00:00
parent c063dad027
commit c85c1bb5c7

View 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;
}