|WARNING| pw114633 [PATCH 09/21] net/softnic: remove unused text parsing functions

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


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

_coding style issues_


CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'string == NULL'
#732: FILE: drivers/net/softnic/rte_eth_softnic_cli.c:55:
+	if ((string == NULL) ||
+		(tokens == NULL) ||
+		(*n_tokens < 1))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'tokens == NULL'
#732: FILE: drivers/net/softnic/rte_eth_softnic_cli.c:55:
+	if ((string == NULL) ||
+		(tokens == NULL) ||
+		(*n_tokens < 1))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'i == *n_tokens'
#743: FILE: drivers/net/softnic/rte_eth_softnic_cli.c:66:
+	if ((i == *n_tokens) && strtok_r(string, PARSE_DELIMITER, &string))

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


More information about the test-report mailing list