Browse Source

misc: mic: mark expected switch fall-through

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

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Gustavo A. R. Silva 7 years ago
parent
commit
bcde98fcf9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/misc/mic/scif/scif_api.c

+ 1 - 0
drivers/misc/mic/scif/scif_api.c

@@ -187,6 +187,7 @@ int scif_close(scif_epd_t epd)
 	case SCIFEP_ZOMBIE:
 	case SCIFEP_ZOMBIE:
 		dev_err(scif_info.mdev.this_device,
 		dev_err(scif_info.mdev.this_device,
 			"SCIFAPI close: zombie state unexpected\n");
 			"SCIFAPI close: zombie state unexpected\n");
+		/* fall through */
 	case SCIFEP_DISCONNECTED:
 	case SCIFEP_DISCONNECTED:
 		spin_unlock(&ep->lock);
 		spin_unlock(&ep->lock);
 		scif_unregister_all_windows(epd);
 		scif_unregister_all_windows(epd);