[dpdk-test-report] |WARNING| pw79633 [PATCH v2 16/56] net/txgbe: add multi-speed link setup

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Oct 5 14:17:00 CEST 2020


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

_coding style issues_


CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'hw->phy.media_type == txgbe_media_type_fiber'
#232: FILE: drivers/net/txgbe/base/txgbe_hw.c:505:
+	if ((hw->phy.media_type == txgbe_media_type_fiber) &&
+	    !txgbe_mng_enabled(hw)) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'link_speed == TXGBE_LINK_SPEED_1GB_FULL'
#488: FILE: drivers/net/txgbe/base/txgbe_hw.c:1005:
+	if (link_up && (link_speed == TXGBE_LINK_SPEED_1GB_FULL))

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


More information about the test-report mailing list