Re: [PATCH] usb: misc: remove unnecessary code

2017-02-21 Thread Gustavo A. R. Silva
Hi Peter, Quoting Peter Senna Tschudin : On Mon, Feb 20, 2017 at 05:28:46PM -0600, Gustavo A. R. Silva wrote: 'val' is an unsigned variable, and less-than-zero comparison of an unsigned variable is never true. I would add that val is set by kstrtoul() that converts a string to an unsigned lo

Re: [PATCH] usb: misc: remove unnecessary code

2017-02-21 Thread Peter Senna Tschudin
On Mon, Feb 20, 2017 at 05:28:46PM -0600, Gustavo A. R. Silva wrote: > 'val' is an unsigned variable, and less-than-zero comparison of an unsigned > variable is never true. I would add that val is set by kstrtoul() that converts a string to an unsigned long. > > Addresses-Coverity-ID: 1230257 Re