Commit e920c3d5 authored by Linus Torvalds's avatar Linus Torvalds

Fix up 0/NULL confusion

parent db47111e
...@@ -442,7 +442,7 @@ u8 ide_dump_status (ide_drive_t *drive, const char *msg, u8 stat) ...@@ -442,7 +442,7 @@ u8 ide_dump_status (ide_drive_t *drive, const char *msg, u8 stat)
int opcode = 0x100; int opcode = 0x100;
spin_lock(&ide_lock); spin_lock(&ide_lock);
rq = 0; rq = NULL;
if (HWGROUP(drive)) if (HWGROUP(drive))
rq = HWGROUP(drive)->rq; rq = HWGROUP(drive)->rq;
spin_unlock(&ide_lock); spin_unlock(&ide_lock);
......
...@@ -84,10 +84,10 @@ static inline unsigned short ip_compute_csum(unsigned char * buff, int len) ...@@ -84,10 +84,10 @@ static inline unsigned short ip_compute_csum(unsigned char * buff, int len)
} }
#define csum_partial_copy_from_user(src, dst, len, sum, errp) \ #define csum_partial_copy_from_user(src, dst, len, sum, errp) \
csum_partial_copy_generic((src), (dst), (len), (sum), (errp), 0) csum_partial_copy_generic((src), (dst), (len), (sum), (errp), NULL)
#define csum_partial_copy_nocheck(src, dst, len, sum) \ #define csum_partial_copy_nocheck(src, dst, len, sum) \
csum_partial_copy_generic((src), (dst), (len), (sum), 0, 0) csum_partial_copy_generic((src), (dst), (len), (sum), NULL, NULL)
static inline u32 csum_tcpudp_nofold(u32 saddr, static inline u32 csum_tcpudp_nofold(u32 saddr,
u32 daddr, u32 daddr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment