Skip to content

Commit

Permalink
[PATCH] drivers/net/wireless/airo.c unsigned comparason
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gabriel A. Devenyi authored and Jeff Garzik committed Nov 5, 2005
1 parent 328198a commit 29b09fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/airo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 29b09fc

Please sign in to comment.