From: Rui Miguel Silva Date: Tue, 20 Jan 2015 16:31:45 +0000 (+0000) Subject: greybus: es1: remove useless statement X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b976266051569557377ce63984b1562a8651838c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/gb-es1.c b/drivers/staging/greybus/gb-es1.c index 27416e440ede..f44c26d21a20 100644 --- a/drivers/staging/greybus/gb-es1.c +++ b/drivers/staging/greybus/gb-es1.c @@ -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; }