greybus: es1: remove useless statement

just return the result of usb_alloc_urb up, no need to rededunt check for NULL

Signed-off-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
Rui Miguel Silva 2015-01-20 16:31:45 +00:00 committed by Greg Kroah-Hartman
parent a1f2e40b1a
commit b976266051

View File

@ -180,8 +180,6 @@ static struct urb *next_free_urb(struct es1_ap_dev *es1, gfp_t gfp_mask)
dev_err(&es1->usb_dev->dev,
"No free CPort OUT urbs, having to dynamically allocate one!\n");
urb = usb_alloc_urb(0, gfp_mask);
if (!urb)
return NULL;
return urb;
}