Skip to contentSkip to conversation

parport: parport_pc: Mark expected switch fall-through

PATCH New Gustavo A. R. Silva 1 participant 1 message Oct 4, 2018 Parallel port

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parport: parport_pc: Mark expected switch fall-through

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

Addresses-Coverity-ID: 114730 ("Missing break in switch")

---
 drivers/parport/parport_pc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/parport/parport_pc.c +1 -1
index 380916b..9c8249f 100644
@@ -1667,7 +1667,7 @@ static int parport_ECP_supported(struct parport *pb)
 	default:
 		printk(KERN_WARNING "0x%lx: Unknown implementation ID\n",
 			pb->base);
-		/* Assume 1 */
+		/* Fall through - Assume 1 */
 	case 1:
 		pword = 1;
 	}
Signature · 1 line
2.7.4