projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f0ecb2
)
PCI / ACPI: Mark expected switch fall-through
author
Gustavo A. R. Silva
<gustavo@embeddedor.com>
Thu, 4 Oct 2018 15:40:41 +0000
(17:40 +0200)
committer
Bjorn 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
patch
|
blob
|
history
diff --git
a/drivers/pci/pci-acpi.c
b/drivers/pci/pci-acpi.c
index
c2ab577
..
deb96d1
100644
(file)
--- 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: