USB: clean up redundant tests on unsigned
temp, bytes and param->{length,sglen,vary} are unsigned so these tests do nothing. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3b438e30c6
commit
e64a521929
@@ -192,8 +192,6 @@ static struct urb *simple_alloc_urb (
|
||||
{
|
||||
struct urb *urb;
|
||||
|
||||
if (bytes < 0)
|
||||
return NULL;
|
||||
urb = usb_alloc_urb (0, GFP_KERNEL);
|
||||
if (!urb)
|
||||
return urb;
|
||||
|
Reference in New Issue
Block a user