[dpdk-dev] [PATCH v2 37/42] net/e1000/base: add fall-through comments for switch cases
Guinan Sun
guinanx.sun at intel.com
Wed Jun 24 09:53:32 CEST 2020
Add fall-through comments to cases without break statements.
Signed-off-by: Jeb Cramer <jeb.j.cramer at intel.com>
Signed-off-by: Guinan Sun <guinanx.sun at intel.com>
---
drivers/net/e1000/base/e1000_vf.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/e1000/base/e1000_vf.c b/drivers/net/e1000/base/e1000_vf.c
index 543fa7741..8d5427af4 100644
--- a/drivers/net/e1000/base/e1000_vf.c
+++ b/drivers/net/e1000/base/e1000_vf.c
@@ -462,8 +462,10 @@ s32 e1000_promisc_set_vf(struct e1000_hw *hw, enum e1000_promisc_type type)
break;
case e1000_promisc_enabled:
msgbuf |= E1000_VF_SET_PROMISC_MULTICAST;
+ /* Fall-through */
case e1000_promisc_unicast:
msgbuf |= E1000_VF_SET_PROMISC_UNICAST;
+ /* Fall-through */
case e1000_promisc_disabled:
break;
default:
--
2.17.1
More information about the dev
mailing list