usb: gadget: atmel_usba_udc: Mark expected switch fall-through
Subsystems (3)
PATCH 1/1 usb: gadget: atmel_usba_udc: Mark expected switch fall-through
Mark switch cases where we are expecting to fall through.
This patch fixes the following warning (Building: at91_dt_defconfig arm):
drivers/usb/gadget/udc/atmel_usba_udc.c:329:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
--- drivers/usb/gadget/udc/atmel_usba_udc.c | 1 + 1 file changed, 1 insertion(+)
drivers/usb/gadget/udc/atmel_usba_udc.c +1 -0
@@ -327,6 +327,7 @@ static int usba_config_fifo_table(struct usba_udc *udc)switch (fifo_mode) {default : fifo_mode =0 ; +/* fall through */ case 0 : udc->fifo_cfg =NULL ; n =0 ;
Signature · 1 line
2.22.0
Quoted 7 lines · Gustavo A. R. Silva
Mark switch cases where we are expecting to fall through.
This patch fixes the following warning (Building:
at91_dt_defconfigarm):
drivers/usb/gadget/udc/atmel_usba_udc.c:329:13: warning: this statement may fall through [-Wimplicit-fallthrough=]Signed-off-by Gustavo A. R. Silva <[email protected]>
Quoted 19 lines
--- drivers/usb/gadget/udc/atmel_usba_udc.c | 1 + 1 file changed, 1 insertion(+)drivers/usb/gadget/udc/atmel_usba_udc.c +1
-0@@ -327,6 +327,7 @@ static int usba_config_fifo_table(struct usba_udc *udc)switch (fifo_mode) {default : fifo_mode =0 ; +/* fall through */ case 0 : udc->fifo_cfg =NULL ; n =0 ;Signature · 1 line
2.22.0
Signature · 3 lines
Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 10 lines · Gustavo A. R. Silva
External E-Mail
Mark switch cases where we are expecting to fall through.
This patch fixes the following warning (Building:
at91_dt_defconfigarm):
drivers/usb/gadget/udc/atmel_usba_udc.c:329:13: warning: this statement may fall through [-Wimplicit-fallthrough=]Signed-off-by Gustavo A. R. Silva <[email protected]>
Quoted 17 lines
--- drivers/usb/gadget/udc/atmel_usba_udc.c | 1 + 1 file changed, 1 insertion(+)drivers/usb/gadget/udc/atmel_usba_udc.c +1
-0@@ -327,6 +327,7 @@ static int usba_config_fifo_table(struct usba_udc *udc)switch (fifo_mode) {default : fifo_mode =0 ; +/* fall through */ case 0 : udc->fifo_cfg =NULL ; n =0 ;