[dpdk-test-report] |WARNING| pw47328 [4/5] net/softnic: update cli parsing

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Oct 24 14:49:29 CEST 2018


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

_coding style issues_


CHECK:BRACES: braces {} should be used on all arms of this statement
#63: FILE: drivers/net/softnic/rte_eth_softnic_cli.c:1116:
+	if (strcmp(tokens[2], "dev") == 0)
[...]
+	else if (strcmp(tokens[2], "dev_id") == 0) {
[...]
+	} else {
[...]

CHECK:BRACES: Blank lines aren't necessary before a close brace '}'
#265: FILE: drivers/net/softnic/rte_eth_softnic_cli.c:4034:
+
+}

CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#290: FILE: drivers/net/softnic/rte_eth_softnic_cli.c:4059:
+	status = rte_cryptodev_get_cipher_algo_enum(

WARNING:UNNECESSARY_ELSE: else is not generally useful after a break or return
#404: FILE: drivers/net/softnic/rte_eth_softnic_cli.c:4173:
+		return xform_cipher;
+	} else {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'n_tokens < 12'
#532: FILE: drivers/net/softnic/rte_eth_softnic_cli.c:4301:
+	if ((n_tokens < 12) ||
+		strcmp(tokens[0], "sym_crypto") ||
+		strcmp(tokens[2], "type"))

total: 0 errors, 1 warnings, 4 checks, 579 lines checked


More information about the test-report mailing list