]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: dwc2: gadget: Fix coverity issue
authorGrigor Tovmasyan <Grigor.Tovmasyan@synopsys.com>
Tue, 3 Apr 2018 11:22:25 +0000 (15:22 +0400)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 21 May 2018 07:40:16 +0000 (10:40 +0300)
commit47265c067c0d129f3a0e94bc221293a780af9d78
tree0b283bad258f5009f43bc3061c57305655dae467
parent8223b2f89ca63e203dcb54148e30d94979f17b0b
usb: dwc2: gadget: Fix coverity issue

When _param is unsigned and the minimum value of range is 0, it gives
the following warning:
COVERITY NO_EFFECT: This less-than-zero comparison of an unsigned value
is never true.

Converting ._param to int to avoid this warning.

Signed-off-by: Grigor Tovmasyan <tovmasya@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/params.c