diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-07 18:13:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-07 17:54:19 -0700 |
commit | d135955f550df5d61bf973a71b758384b32fe638 (patch) | |
tree | 033937006ab0a1649a282e564634a13bfd2bc5e6 /drivers/net/ethernet/chelsio/cxgb4 | |
parent | 20e4fb12b146cab4ca9c4f1e10c04fcd67823f43 (diff) | |
download | talos-obmc-linux-d135955f550df5d61bf973a71b758384b32fe638.tar.gz talos-obmc-linux-d135955f550df5d61bf973a71b758384b32fe638.zip |
cxgb4/t4_hw: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114777 ("Missing break in switch")
Addresses-Coverity-ID: 114778 ("Missing break in switch")
Addresses-Coverity-ID: 114779 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c index 2d9943f90a75..5fe5d16dee72 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c +++ b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c @@ -7504,10 +7504,13 @@ int t4_alloc_vi(struct adapter *adap, unsigned int mbox, unsigned int port, switch (nmac) { case 5: memcpy(mac + 24, c.nmac3, sizeof(c.nmac3)); + /* Fall through */ case 4: memcpy(mac + 18, c.nmac2, sizeof(c.nmac2)); + /* Fall through */ case 3: memcpy(mac + 12, c.nmac1, sizeof(c.nmac1)); + /* Fall through */ case 2: memcpy(mac + 6, c.nmac0, sizeof(c.nmac0)); } |