[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1462743827-4469-1-git-send-email-xypron.glpk@gmx.de>
Date: Sun, 8 May 2016 23:43:47 +0200
From: Heinrich Schuchardt <xypron.glpk@....de>
To: Felipe Balbi <balbi@...nel.org>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Andrzej Pietrasiewicz <andrzej.p@...sung.com>,
John Youn <John.Youn@...opsys.com>,
Nicholas Bellinger <nab@...ux-iscsi.org>,
Robert Baldyga <r.baldyga@...sung.com>,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
Heinrich Schuchardt <xypron.glpk@....de>
Subject: [PATCH 1/1] usb: gadget: hid: remove redundant breaks
Code after goto is never reached.
Remove redundant breaks.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@....de>
---
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
Powered by blists - more mailing lists