PCI / ACPI: Mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 4 Oct 2018 15:40:41 +0000 (17:40 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 4 Oct 2018 20:50:37 +0000 (15:50 -0500)
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>
drivers/pci/pci-acpi.c

index c2ab577..deb96d1 100644 (file)
@@ -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: