Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965021AbVKHMjZ (ORCPT ); Tue, 8 Nov 2005 07:39:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965022AbVKHMjZ (ORCPT ); Tue, 8 Nov 2005 07:39:25 -0500 Received: from mail.isurf.ca ([66.154.97.68]:42929 "EHLO columbo.isurf.ca") by vger.kernel.org with ESMTP id S965021AbVKHMjY (ORCPT ); Tue, 8 Nov 2005 07:39:24 -0500 Message-ID: <43709C81.9060408@staticwave.ca> Date: Tue, 08 Nov 2005 07:39:29 -0500 From: "Gabriel A. Devenyi" User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: linux-kernel@vger.kernel.org Cc: kernel-janitors@lists.osdl.org Subject: [RESEND] [PATCH] drivers/net/wireless/airo.c unsigned comparason Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1101 Lines: 32 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). This patch applies to linus' git tree as of 03.11.2005 Signed-off-by: Gabriel A. Devenyi diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 750c016..849ac88 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c @@ -2040,7 +2040,7 @@ static int mpi_send_packet (struct net_d 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; -- Gabriel A. Devenyi ace@staticwave.ca - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/