Skip to content

avoid unnecessary use of comma operator

Stephen Hemminger dpdk-dev 5 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest8 patches 6 repliesApplied
  2. v49 patches 4 repliesSuperseded
  3. v37 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v26 patches14 repliesSuperseded
v1 RFC7 patches0 repliesSuperseded

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/8eal: replace unnecessary comma operatorlib/eal/common/rte_malloc.c lib/eal/linux/eal_alarm.c+6 -40 replies
2/8ipsec: replace unnecessary comma operatorlib/ipsec/misc.h+3 -50 replies
3/8test: replace unnecessary comma operatorsapp/test/test_compressdev.c app/test/test_link_bonding_rssconf.c app/test/test_thash.c+6 -70 replies
4/8app/testpmd: replace comma operator with bracketapp/test-pmd/cmdline_flow.c app/test-pmd/config.c+10 -60 replies
5/8examples: remove unnecessary use of comma operatorexamples/l2fwd-event/l2fwd_event_generic.c examples/l3fwd/l3fwd_event_generic.c+2 -22 replies
6/8net/bnx2x: remove unnecessary comma operatordrivers/net/bnx2x/bnx2x.c+2 -20 replies
7/8net/bnxt: remove unnecessary use of comma operatordrivers/net/bnxt/tf_core/tf_msg.c+2 -20 replies
8/8config: enable comma warningsconfig/meson.build drivers/meson.build+2 -11 reply

Reviews trailers per patch

6 of 8 patches have a Reviewed-by or Acked-by.

PatchKonstantin AnanyevChengwen FengMorten BrørupBruce Richardson
1/8A-b A-b A-b A-b
2/8A-b A-b A-b
3/8A-b A-b A-b A-b
4/8A-b A-b A-b
5/8A-b A-b
6/8
7/8
8/8A-b A-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/8] avoid unnecessary use of comma operator

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(-)
Signature · 1 line
2.47.3