From: Gustavo A. R. Silva Date: Tue, 7 Aug 2018 23:18:30 +0000 (-0500) Subject: net: hns3: Mark expected switch fall-through X-Git-Tag: Ubuntu-4.15.0-44.47~256 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=64061deb5b66d42902023b5db02f67b260f850e4;hp=b82e46809636dbe57eda027696d0f978cf39c01b;p=mirror_ubuntu-bionic-kernel.git net: hns3: Mark expected switch fall-through BugLink: https://bugs.launchpad.net/bugs/1810457 In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 114789 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva Signed-off-by: David S. Miller (cherry picked from commit be44b3afa98205607a7930b155557ccda9efd1e2) Signed-off-by: dann frazier Acked-by: Stefan Bader Acked-by: Kleber Sacilotto de Souza Signed-off-by: Kleber Sacilotto de Souza --- diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 3ba946e878e8..8003dc5a1d8d 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -2110,6 +2110,7 @@ static void hns3_rx_checksum(struct hns3_enet_ring *ring, struct sk_buff *skb, case HNS3_OL4_TYPE_MAC_IN_UDP: case HNS3_OL4_TYPE_NVGRE: skb->csum_level = 1; + /* fall through */ case HNS3_OL4_TYPE_NO_TUN: /* Can checksum ipv4 or ipv6 + UDP/TCP/SCTP packets */ if ((l3_type == HNS3_L3_TYPE_IPV4 ||