|WARNING| pw114636 [PATCH 13/21] net/softnic: add pipeline table CLI commands

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Aug 4 19:00:59 CEST 2022


Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/114636

_coding style issues_


CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'n_tokens >= 5'
#437: FILE: drivers/net/softnic/rte_eth_softnic_cli.c:924:
+		if ((n_tokens >= 5) &&
+			!strcmp(tokens[2], "table") &&
+			!strcmp(tokens[4], "add")) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'n_tokens >= 5'
#444: FILE: drivers/net/softnic/rte_eth_softnic_cli.c:931:
+		if ((n_tokens >= 5) &&
+			!strcmp(tokens[2], "table") &&
+			!strcmp(tokens[4], "delete")) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'n_tokens >= 5'
#452: FILE: drivers/net/softnic/rte_eth_softnic_cli.c:939:
+		if ((n_tokens >= 5) &&
+			!strcmp(tokens[2], "table") &&
+			!strcmp(tokens[4], "default")) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'n_tokens >= 5'
#460: FILE: drivers/net/softnic/rte_eth_softnic_cli.c:947:
+		if ((n_tokens >= 5) && !strcmp(tokens[2], "table") && !strcmp(tokens[4], "show")) {

total: 0 errors, 0 warnings, 4 checks, 388 lines checked


More information about the test-report mailing list