[dpdk-test-report] |WARNING| pw72945 [PATCH v2] net/pcap: support snaplen option to truncate packet

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Jul 3 08:49:13 CEST 2020


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

_coding style issues_

Must be a reply to the first patch (--in-reply-to).


CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'pp->snaplen > 0'
#211: FILE: drivers/net/pcap/rte_eth_pcap.c:346:
+		if ((pp->snaplen > 0) && (caplen > pp->snaplen))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'caplen > pp->snaplen'
#211: FILE: drivers/net/pcap/rte_eth_pcap.c:346:
+		if ((pp->snaplen > 0) && (caplen > pp->snaplen))

total: 0 errors, 0 warnings, 2 checks, 191 lines checked


More information about the test-report mailing list