Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:36915 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755681Ab1HWTPj (ORCPT ); Tue, 23 Aug 2011 15:15:39 -0400 Date: Tue, 23 Aug 2011 22:13:06 +0300 From: Dan Carpenter To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: "open list:BROADCOM SPECIFIC..." , kernel-janitors@vger.kernel.org Subject: Re: [patch -next] bcma: signedness bug in bcma_get_next_core() Message-ID: <20110823191306.GK12248@shale.localdomain> (sfid-20110823_211543_994368_3CDBC01A) References: <20110818133809.GG4786@shale.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: Sender: linux-wireless-owner@vger.kernel.org List-ID: On Sat, Aug 20, 2011 at 02:23:56PM +0200, Rafał Miłecki wrote: > W dniu 18 sierpnia 2011 15:38 użytkownik Dan Carpenter > napisał: > > The u32 would never be less than zero so the error handling would > > break.  I changed it to int. > > In declaration we use s32: > static s32 bcma_erom_get_mst_port(struct bcma_bus *bus, u32 **eromptr); > > Doesn't it sound better to use s32 instead of int? > I don't know. I think I'm going to trust the original author on this one. I'll send you a v2 that uses s32. regards, dan carpenter