[PATCH v3 4/7] test: replace unnecessary comma operators
Morten Brørup
mb at smartsharesystems.com
Sat Aug 16 09:37:23 CEST 2025
> diff --git a/app/test/test_thash.c b/app/test/test_thash.c
> index 33b0c6adac..398db71839 100644
> --- a/app/test/test_thash.c
> +++ b/app/test/test_thash.c
> @@ -910,7 +910,7 @@ test_adjust_tuple_mult_reta(void)
> {
> uint32_t i, j, np, nt;
>
> - nt = 0, np = 0;
> + nt = 0; np = 0;
Consider putting these assignments on separate lines.
> for (i = 0; i < CHAR_BIT; i++) {
> for (j = 6; j <= RTE_THASH_RETA_SZ_MAX - i; j++) {
> np += (test_adjust_tuple_mb(j, i) == 0);
> --
> 2.47.2
More information about the dev
mailing list