Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] drivers/net/wireless/airo.c unsigned comparason

fid is declared as a u32 (unsigned int), and then a few lines later, it is checked for a value < 0, which is clearly useless.
In the two locations this function is used, in one it is *explicitly* given a negative number, which would be ignored with the
current definition.

Thanks to LinuxICC (http://linuxicc.sf.net).

Signed-off-by: Gabriel A. Devenyi <ace@staticwave.ca>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>

authored by

Gabriel A. Devenyi and committed by
Jeff Garzik
29b09fcc 328198ac

+1 -1
+1 -1
drivers/net/wireless/airo.c
··· 2040 2040 return 1; 2041 2041 } 2042 2042 2043 - static void get_tx_error(struct airo_info *ai, u32 fid) 2043 + static void get_tx_error(struct airo_info *ai, s32 fid) 2044 2044 { 2045 2045 u16 status; 2046 2046