[PATCH v2 2/6] ipsec: replace unnecessary comma operator
Konstantin Ananyev
konstantin.ananyev at huawei.com
Fri Aug 15 15:47:37 CEST 2025
> -----Original Message-----
> From: Stephen Hemminger <stephen at networkplumber.org>
> Sent: Thursday, August 14, 2025 10:29 PM
> To: dev at dpdk.org
> Cc: Stephen Hemminger <stephen at networkplumber.org>; Konstantin Ananyev <konstantin.ananyev at huawei.com>; Vladimir
> Medvedkin <vladimir.medvedkin at intel.com>
> Subject: [PATCH v2 2/6] ipsec: replace unnecessary comma operator
>
> Use of comma as statement separator is discouraged and
> reported as warning by clang with -Wcomma
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> ---
> lib/ipsec/misc.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/lib/ipsec/misc.h b/lib/ipsec/misc.h
> index fd4d3f5256..54dc5c2d4d 100644
> --- a/lib/ipsec/misc.h
> +++ b/lib/ipsec/misc.h
> @@ -126,7 +126,8 @@ cpu_crypto_bulk(const struct rte_ipsec_session *ss,
>
> const uint32_t vnum = RTE_DIM(vec);
>
> - j = 0, n = 0;
> + j = 0;
> + n = 0;
> vofs = 0;
> for (i = 0; i != num; i++) {
>
> --
Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
> 2.47.2
More information about the dev
mailing list