Skip to contentSkip to conversation

misc: mic: mark expected switch fall-through

PATCH New Gustavo A. R. Silva 1 participant 1 message Jul 3, 2018 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 misc: mic: mark expected switch fall-through

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

---
 drivers/misc/mic/scif/scif_api.c | 1 +
 1 file changed, 1 insertion(+)
drivers/misc/mic/scif/scif_api.c +1 -0
index 7b2dddc..463f06d 100644
@@ -187,6 +187,7 @@ int scif_close(scif_epd_t epd)
 	case SCIFEP_ZOMBIE:
 		dev_err(scif_info.mdev.this_device,
 			"SCIFAPI close: zombie state unexpected\n");
+		/* fall through */
 	case SCIFEP_DISCONNECTED:
 		spin_unlock(&ep->lock);
 		scif_unregister_all_windows(epd);
Signature · 1 line
2.7.4