[PATCH v5 0/8] avoid unnecessary use of comma operator
Stephen Hemminger
stephen at networkplumber.org
Fri Oct 17 17:02:01 CEST 2025
Clang has ability to detect suspicious use of comma operator
where a semicolon would have the same effect.
Easy enough to fix in DPDK code.
v5 - rebase to current main
Stephen Hemminger (8):
eal: replace unnecessary comma operator
ipsec: replace unnecessary comma operator
test: replace unnecessary comma operators
app/testpmd: replace comma operator with bracket
examples: remove unnecessary use of comma operator
net/bnx2x: remove unnecessary comma operator
net/bnxt: remove unnecessary use of comma operator
config: enable comma warnings
app/test-pmd/cmdline_flow.c | 6 ++++--
app/test-pmd/config.c | 10 ++++++----
app/test/test_compressdev.c | 4 ++--
app/test/test_link_bonding_rssconf.c | 2 +-
app/test/test_thash.c | 7 +++----
config/meson.build | 1 +
drivers/meson.build | 2 +-
drivers/net/bnx2x/bnx2x.c | 4 ++--
drivers/net/bnxt/tf_core/tf_msg.c | 4 ++--
examples/l2fwd-event/l2fwd_event_generic.c | 2 +-
examples/l3fwd/l3fwd_event_generic.c | 2 +-
lib/eal/common/rte_malloc.c | 4 ++--
lib/eal/linux/eal_alarm.c | 6 ++++--
lib/ipsec/misc.h | 8 +++-----
14 files changed, 33 insertions(+), 29 deletions(-)
--
2.47.3
More information about the dev
mailing list