diff options
| author | Sebastian Andrzej Siewior <[email protected]> | 2012-12-03 15:32:36 +0100 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2013-01-10 12:36:47 +0200 |
| commit | 98f3a1b90795d7216de0d56157868d174317f91a (patch) | |
| tree | fa97d798f6f13ad9d818a0bebf69575f8fbaac4d /tools/perf/scripts/python | |
| parent | b642435333b23ab01d526bd854d118704434fc88 (diff) | |
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.
[ [email protected] : make lun unsigned int and use %u in DBG() macro for it ]
Signed-off-by: Michal Nazarewicz <[email protected]>
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions