Changeset 3625

Show
Ignore:
Timestamp:
05/12/08 03:42:34 (3 months ago)
Author:
proski
Message:

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

This should fix #1932

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • madwifi/trunk/include/compat.h

    r3605 r3625  
    6767{ 
    6868        void *p = kmalloc(size, flags); 
    69         if (likely(p)) 
     69        if (likely(p != NULL)) 
    7070                memset(p, 0, size); 
    7171        return p;