提交 b9762660 编写于 作者: R Rui Miguel Silva 提交者: Greg Kroah-Hartman

greybus: es1: remove useless statement

just return the result of usb_alloc_urb up, no need to rededunt check for NULL
Signed-off-by: NRui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <greg@kroah.com>
上级 a1f2e40b
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册