Skip to content

Commit

Permalink
likely() doesn't take pointers in Linux 2.4, give it an integer
Browse files Browse the repository at this point in the history
This should fix #1932


git-svn-id: http:https://madwifi-project.org/svn/madwifi/trunk@3625 0192ed92-7a03-0410-a25b-9323aeb14dbd
  • Loading branch information
proski committed May 12, 2008
1 parent c063dad commit c85c1bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c85c1bb

Please sign in to comment.