Skip to contentSkip to conversation

usb: gadget: f_tcm: mark expected switch fall-through

PATCH New Gustavo A. R. Silva 1 participant 1 message Oct 24, 2017 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: gadget: f_tcm: mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.

Addresses-Coverity-ID: 703128

---
 drivers/usb/gadget/function/f_tcm.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/gadget/function/f_tcm.c +1 -0
index a82e2bd..c9d741d 100644
@@ -1145,6 +1145,7 @@ static int usbg_submit_command(struct f_uas *fu,
 	default:
 		pr_debug_once("Unsupported prio_attr: %02x.\n",
 				cmd_iu->prio_attr);
+		/* fall through */
 	case UAS_SIMPLE_TAG:
 		cmd->prio_attr = TCM_SIMPLE_TAG;
 		break;
Signature · 1 line
2.7.4