mirror of
https://github.com/proski/madwifi
synced 2024-11-21 22:11:32 +03:00
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:
parent
c063dad027
commit
c85c1bb5c7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user