Browse Source

PCI / ACPI: Mark expected switch fall-through

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

Addresses-Coverity-ID: 1472052 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Gustavo A. R. Silva 6 năm trước cách đây
mục cha
commit
fa295becc5
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      drivers/pci/pci-acpi.c

+ 1 - 0
drivers/pci/pci-acpi.c

@@ -548,6 +548,7 @@ static int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state)
 			error = -EBUSY;
 			break;
 		}
+		/* Fall through */
 	case PCI_D0:
 	case PCI_D1:
 	case PCI_D2: