diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-10-04 17:40:41 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2018-10-04 15:50:37 -0500 |
commit | fa295becc533234e4b1ea774caed2446a65ff695 (patch) | |
tree | 6c4566db19aa4e48e1d9bd8cede2666a2df2bd70 /drivers/pci | |
parent | 5f0ecb275b16693865f58a323fc27e23dfc6ed0d (diff) |
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>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci-acpi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c index c2ab57705043..deb96d1a4728 100644 --- a/drivers/pci/pci-acpi.c +++ b/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: |