Skip to content

Commit

Permalink
usb: dwc3: ep0: remove unnecessary break after return
Browse files Browse the repository at this point in the history
Fix the following checkpatch warning.

  WARNING: break is not useful after a goto or return

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Jingoo Han authored and Felipe Balbi committed Nov 5, 2014
1 parent baadd52 commit 5eb125b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/usb/dwc3/ep0.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,6 @@ static int dwc3_ep0_handle_feature(struct dwc3 *dwc,

case USB_DEVICE_LTM_ENABLE:
return -EINVAL;
break;

case USB_DEVICE_TEST_MODE:
if ((wIndex & 0xff) != 0)
Expand Down Expand Up @@ -552,7 +551,6 @@ static int dwc3_ep0_set_config(struct dwc3 *dwc, struct usb_ctrlrequest *ctrl)
switch (state) {
case USB_STATE_DEFAULT:
return -EINVAL;
break;

case USB_STATE_ADDRESS:
ret = dwc3_ep0_delegate_req(dwc, ctrl);
Expand Down

0 comments on commit 5eb125b

Please sign in to comment.