diff --git a/drivers/net/ethernet/mucse/rnpgbevf/rnpgbevf_ethtool.c b/drivers/net/ethernet/mucse/rnpgbevf/rnpgbevf_ethtool.c index 4e32d557a33f..4848bbbb7735 100644 --- a/drivers/net/ethernet/mucse/rnpgbevf/rnpgbevf_ethtool.c +++ b/drivers/net/ethernet/mucse/rnpgbevf/rnpgbevf_ethtool.c @@ -128,7 +128,8 @@ static int rnpgbevf_get_link_ksettings(struct net_device *netdev, struct rnpgbevf_hw *hw = &adapter->hw; bool autoneg = false; bool link_up; - u32 supported, advertising; + u32 supported; + u32 advertising = 0; u32 link_speed = 0; ethtool_convert_link_mode_to_legacy_u32(&supported,