diff options
author | Gabriel A. Devenyi <ace@staticwave.ca> | 2005-11-03 19:30:47 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-11-05 14:40:26 -0500 |
commit | 29b09fcc341ede8dc08c900b132903fdd0231400 (patch) | |
tree | e3a5ea7d07e60b81055c364d5bcbca8579557496 /drivers/net/wireless | |
parent | 328198acb7407301ddf6005c0fa1e04bd0c539c8 (diff) |
[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>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/airo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 750c0167539c..849ac88bcccc 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c | |||
@@ -2040,7 +2040,7 @@ static int mpi_send_packet (struct net_device *dev) | |||
2040 | return 1; | 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 | u16 status; | 2045 | u16 status; |
2046 | 2046 | ||