net/ixgbe/base: remove log message FC autoneg
authorGuinan Sun <guinanx.sun@intel.com>
Thu, 9 Jul 2020 08:00:39 +0000 (08:00 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sat, 11 Jul 2020 04:18:53 +0000 (06:18 +0200)
The function ixgbe_device_supports_autoneg_fc is checking whether
a particular device and medium configuration is supporting
Flow Control Autonegotiation. In case of non-support, the message
is always logged which is confusing.
The fix is removing unnecessary log entry.

Signed-off-by: Zalfresso-Jundzillo <marekx.zalfresso-jundzillo@intel.com>
Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
Reviewed-by: Wei Zhao <wei.zhao1@intel.com>
drivers/net/ixgbe/base/ixgbe_common.c

index f17dba9..49cee80 100644 (file)
@@ -186,10 +186,6 @@ bool ixgbe_device_supports_autoneg_fc(struct ixgbe_hw *hw)
                break;
        }
 
-       if (!supported)
-               ERROR_REPORT2(IXGBE_ERROR_UNSUPPORTED,
-                             "Device %x does not support flow control autoneg",
-                             hw->device_id);
        return supported;
 }