Skip to content

Commit

Permalink
usb: gadget: dummy_hcd: fix unneeded else-if condition
Browse files Browse the repository at this point in the history
We already know at this point that to_host is false.

Signed-off-by: Igor Kotrasinski <i.kotrasinsk@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Igor Kotrasinski authored and Felipe Balbi committed Sep 21, 2015
1 parent 21c3ee9 commit 5dda5be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/udc/dummy_hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@ static int transfer(struct dummy_hcd *dum_hcd, struct urb *urb,
*status = -EOVERFLOW;
else
*status = 0;
} else if (!to_host) {
} else {
*status = 0;
if (host_len > dev_len)
req->req.status = -EOVERFLOW;
Expand Down

0 comments on commit 5dda5be

Please sign in to comment.