|WARNING| pw114634 [PATCH 11/21] net/softnic: add pipeline library build CLI command

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Aug 4 19:01:03 CEST 2022


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

_coding style issues_


CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'length < 3'
#141: FILE: drivers/net/softnic/rte_eth_softnic_cli.c:278:
+	if ((length < 3) ||
+	    (code_file[length - 2] != '.') ||
+	    (code_file[length - 1] != 'c')) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'length < 4'
#150: FILE: drivers/net/softnic/rte_eth_softnic_cli.c:287:
+	if ((length < 4) ||
+	    (lib_file[length - 3] != '.') ||
+	    (lib_file[length - 2] != 's') ||
+	    (lib_file[length - 1] != 'o')) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'n_tokens >= 3'
#241: FILE: drivers/net/softnic/rte_eth_softnic_cli.c:505:
+		if ((n_tokens >= 3) && !strcmp(tokens[1], "libbuild")) {

total: 0 errors, 0 warnings, 3 checks, 167 lines checked


More information about the test-report mailing list