[PATCH 1/1] usb: gadget: hid: remove redundant breaks

From: Heinrich Schuchardt
Date: Sun May 08 2016 - 17:44:19 EST


Code after goto is never reached.
Remove redundant breaks.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@xxxxxx>
---
drivers/usb/gadget/function/f_hid.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/usb/gadget/function/f_hid.c b/drivers/usb/gadget/function/f_hid.c
index 51980c5..6ee81e5 100644
--- a/drivers/usb/gadget/function/f_hid.c
+++ b/drivers/usb/gadget/function/f_hid.c
@@ -449,7 +449,6 @@ static int hidg_setup(struct usb_function *f,
hidg_desc_copy.bLength);
memcpy(req->buf, &hidg_desc_copy, length);
goto respond;
- break;
}
case HID_DT_REPORT:
VDBG(cdev, "USB_REQ_GET_DESCRIPTOR: REPORT\n");
@@ -457,13 +456,11 @@ static int hidg_setup(struct usb_function *f,
hidg->report_desc_length);
memcpy(req->buf, hidg->report_desc, length);
goto respond;
- break;

default:
VDBG(cdev, "Unknown descriptor request 0x%x\n",
value >> 8);
goto stall;
- break;
}
break;

--
2.1.4