提交 29b09fcc 编写于 作者: G Gabriel A. Devenyi 提交者: 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: NGabriel A. Devenyi <ace@staticwave.ca>
Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
上级 328198ac
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册