liquidio: mark expected switch fall-through in octeon_destroy_resources
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Tue, 17 Oct 2017 19:01:45 +0000 (14:01 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Oct 2017 12:27:55 +0000 (13:27 +0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c

index e4a112cf4f8e7005e9628c37ff994ebfaafb6385..4c3b5688529bd4105b43f9d62525eaf8a1094cd9 100644 (file)
@@ -747,7 +747,7 @@ static void octeon_destroy_resources(struct octeon_device *oct)
 
                if (lio_wait_for_oq_pkts(oct))
                        dev_err(&oct->pci_dev->dev, "OQ had pending packets\n");
-
+               /* fall through */
        case OCT_DEV_INTR_SET_DONE:
                /* Disable interrupts  */
                oct->fn_list.disable_interrupt(oct, OCTEON_ALL_INTR);