Commit 2ec515bf authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

greybus: es1: no need to assign a variable we return directly



In next_free_urb(), just return usb_alloc_urb(), don't waste the time
assigning it to a local variable that we then return.

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 580c47d8
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -179,9 +179,7 @@ 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);

	return urb;
	return usb_alloc_urb(0, gfp_mask);
}

static void free_urb(struct es1_ap_dev *es1, struct urb *urb)