From: Sebastian Andrzej Siewior Date: Mon, 3 Dec 2012 14:32:36 +0000 (+0100) Subject: usb: gadget: mass_storage: remove >= 0 check for unsigned type X-Git-Tag: v3.9-rc1~126^2~43^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98f3a1b90795d7216de0d56157868d174317f91a;p=pandora-kernel.git usb: gadget: mass_storage: remove >= 0 check for unsigned type | In file included from drivers/usb/gadget/acm_ms.c:43: | f_mass_storage.c:2199:18: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare] | if (common->lun >= 0 && common->lun < common->nluns) | ~~~~~~~~~~~ ^ ~ common->lun is defined as "unsigned int" so its value is always >= 0. It is assigned via cbw->Lun which is defined as u8 so it is also not abused as -1. [ mina86@mina86.com : make lun unsigned int and use %u in DBG() macro for it ] Signed-off-by: Michal Nazarewicz Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed