diff mbox series

serial: 8250_pci: Use fallthrough pseudo-keyword

Message ID 20210507130403.11144-1-jj251510319013@gmail.com
State New
Headers show
Series serial: 8250_pci: Use fallthrough pseudo-keyword | expand

Commit Message

Wei Ming Chen May 7, 2021, 1:04 p.m. UTC
Add pseudo-keyword macro fallthrough[1]

[1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

Signed-off-by: Wei Ming Chen <jj251510319013@gmail.com>
---
 drivers/tty/serial/8250/8250_pci.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c
index 689d8227f95f..4158f06de4d5 100644
--- a/drivers/tty/serial/8250/8250_pci.c
+++ b/drivers/tty/serial/8250/8250_pci.c
@@ -847,8 +847,11 @@  static int pci_netmos_init(struct pci_dev *dev)
 
 	switch (dev->device) { /* FALLTHROUGH on all */
 	case PCI_DEVICE_ID_NETMOS_9904:
+		fallthrough;
 	case PCI_DEVICE_ID_NETMOS_9912:
+		fallthrough;
 	case PCI_DEVICE_ID_NETMOS_9922:
+		fallthrough;
 	case PCI_DEVICE_ID_NETMOS_9900:
 		num_serial = pci_netmos_9900_numports(dev);
 		break;