Commit 29b09fcc authored by Gabriel A. Devenyi's avatar Gabriel A. Devenyi Committed by Jeff Garzik

[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: default avatarGabriel A. Devenyi <ace@staticwave.ca>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent 328198ac
...@@ -2040,7 +2040,7 @@ static int mpi_send_packet (struct net_device *dev) ...@@ -2040,7 +2040,7 @@ static int mpi_send_packet (struct net_device *dev)
return 1; return 1;
} }
static void get_tx_error(struct airo_info *ai, u32 fid) static void get_tx_error(struct airo_info *ai, s32 fid)
{ {
u16 status; u16 status;
......
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