]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: pciehp: Avoid implicit fallthroughs in switch statements
authorLukas Wunner <lukas@wunner.de>
Sat, 28 Jul 2018 05:22:00 +0000 (07:22 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 31 Jul 2018 18:26:33 +0000 (13:26 -0500)
commit416d31b8e4ccf9e15b1fb6f6d7abb53f8b3980a6
tree6c30db6932ae3dae9fe835474e98f549fbc0c158
parent63c065a0f538d2f1fa63247df187906d81f9144a
PCI: pciehp: Avoid implicit fallthroughs in switch statements

Per Mika's request, add an explicit break to the last case of switch
statements everywhere in pciehp to be more defensive towards future
amendments.

Per Gustavo's request, mark all non-empty implicit fallthroughs with a
comment to silence warnings triggered by -Wimplicit-fallthrough=2.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
drivers/pci/hotplug/pciehp_ctrl.c