git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f87731e
)
net/bnxt: add a fallthrough comment in cascading switch
author
Ajit Khaparde
<ajit.khaparde@broadcom.com>
Mon, 7 Nov 2016 15:11:55 +0000
(09:11 -0600)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Mon, 7 Nov 2016 18:41:49 +0000
(19:41 +0100)
The cascading switch statement in bnxt_hwrm.c is missing the FALLTHROUGH
comment. Adding that.
Coverity issue: 127552
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/bnxt/bnxt_hwrm.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnxt/bnxt_hwrm.c
b/drivers/net/bnxt/bnxt_hwrm.c
index
cf79fc6
..
07e7124
100644
(file)
--- a/
drivers/net/bnxt/bnxt_hwrm.c
+++ b/
drivers/net/bnxt/bnxt_hwrm.c
@@
-606,6
+606,7
@@
int bnxt_hwrm_ring_alloc(struct bnxt *bp,
switch (ring_type) {
case HWRM_RING_ALLOC_INPUT_RING_TYPE_TX:
req.queue_id = bp->cos_queue[0].id;
+ /* FALLTHROUGH */
case HWRM_RING_ALLOC_INPUT_RING_TYPE_RX:
req.ring_type = ring_type;
req.cmpl_ring_id =