2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-17 01:34:00 +08:00

[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>
This commit is contained in:
Gabriel A. Devenyi 2005-11-03 19:30:47 -05:00 committed by Jeff Garzik
parent 328198acb7
commit 29b09fcc34

View File

@ -2040,7 +2040,7 @@ static int mpi_send_packet (struct net_device *dev)
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;