Skip to contentSkip to conversation

iscsi_ibft: Mark expected switch fall-through

PATCH New Gustavo A. R. Silva 1 participant 1 message Jul 2, 2018 iSCSI boot firmware table (iBFT) driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iscsi_ibft: Mark expected switch fall-through

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

---
 drivers/firmware/iscsi_ibft.c | 1 +
 1 file changed, 1 insertion(+)
drivers/firmware/iscsi_ibft.c +1 -0
index 6bc8e66..ba64568 100644
@@ -542,6 +542,7 @@ static umode_t __init ibft_check_tgt_for(void *data, int type)
 	case ISCSI_BOOT_TGT_NIC_ASSOC:
 	case ISCSI_BOOT_TGT_CHAP_TYPE:
 		rc = S_IRUGO;
+		/* fall through */
 	case ISCSI_BOOT_TGT_NAME:
 		if (tgt->tgt_name_len)
 			rc = S_IRUGO;
Signature · 1 line
2.7.4