mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
a1f2e40b1a
commit
b976266051
1 changed files with 0 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue