1 From 570d1abb82d480fa68b12bf787ea8204bdcdbacc Mon Sep 17 00:00:00 2001
2 From: Nathan Chancellor <natechancellor@gmail.com>
3 Date: Sun, 4 Mar 2018 20:09:26 -0700
4 Subject: [PATCH 243/454] usb: dwb_otg: Fix unreachable switch statement
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
10 This warning appears with GCC 7.3.0 from toolchains.bootlin.com:
12 ../drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c: In function ‘fiq_fsm_update_hs_isoc’:
13 ../drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c:595:61: warning: statement will never be executed [-Wswitch-unreachable]
14 st->hctsiz_copy.b.xfersize = nrpackets * st->hcchar_copy.b.mps;
17 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
19 drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
22 --- a/drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c
23 +++ b/drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c
24 @@ -591,8 +591,8 @@ static int notrace noinline fiq_fsm_upda
28 - switch (st->hcchar_copy.b.multicnt) {
29 st->hctsiz_copy.b.xfersize = nrpackets * st->hcchar_copy.b.mps;
30 + switch (st->hcchar_copy.b.multicnt) {
32 st->hctsiz_copy.b.pid = DWC_PID_DATA0;