From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 12 May 2017 13:24:07 -0400 Subject: [U-Boot] [U-Boot, 5/8] gpio-uclass.c: Fix comparison of unsigned expression warning In-Reply-To: <1494444018-2748-5-git-send-email-trini@konsulko.com> References: <1494444018-2748-5-git-send-email-trini@konsulko.com> Message-ID: <20170512172407.GD5701@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, May 10, 2017 at 03:20:15PM -0400, Tom Rini wrote: > We declare that gpio_base (which is the base for counting gpios, not an > address) is unsigned. Therefore the comparison with >= 0 is always > true. As the desire is to allow for this base number to be 0, we can > just drop this check. Reported by clang-3.8. > > Cc: Simon Glass > Signed-off-by: Tom Rini > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: