OSDN Git Service

usb: usb251xb: Remove unnecessary comparison of unsigned integer with >= 0
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 18 Mar 2019 14:50:24 +0000 (09:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Mar 2019 14:10:55 +0000 (15:10 +0100)
commit22feda47b574c2854cc1a8447a2ae18598752375
treee08b3911ff51463ca49a0b35bee8a06b4d53865a
parent238e0268c82789e4c107a37045d529a6dbce51a9
usb: usb251xb: Remove unnecessary comparison of unsigned integer with >= 0

There is no need to compare *port* with >= 0 because such comparison
of an unsigned value is always true.

Fix this by removing such comparison.

Addresses-Coverity-ID: 1443949 ("Unsigned compared against 0")
Fixes: 02a50b875046 ("usb: usb251xb: add usb data lane port swap feature")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Richard Leitner <richard.leitner@skidata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usb251xb.c