[dpdk-test-report] |WARNING| pw44675 [v2, 19/21] net/atlantic: device MTU and statuses

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Sep 13 13:39:33 CEST 2018


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

_coding style issues_


WARNING:EMBEDDED_FUNCTION_NAME: Prefer using '"%s...", __func__' to using 'atl_dev_start', this function's name, in a string
#92: FILE: drivers/net/atlantic/atl_ethdev.c:694:
+	PMD_INIT_LOG(ERR, "failure in atl_dev_start(): %d", err);

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'mtu < ETHER_MIN_MTU'
#219: FILE: drivers/net/atlantic/atl_ethdev.c:1418:
+	if ((mtu < ETHER_MIN_MTU) || (frame_size > dev_info.max_rx_pktlen))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'frame_size > dev_info.max_rx_pktlen'
#219: FILE: drivers/net/atlantic/atl_ethdev.c:1418:
+	if ((mtu < ETHER_MIN_MTU) || (frame_size > dev_info.max_rx_pktlen))

total: 0 errors, 1 warnings, 2 checks, 212 lines checked


More information about the test-report mailing list