Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d18c2a1b authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

phylink: Fix an uninitialized variable bug



"ret" isn't necessarily initialized here.

Fixes: 9525ae83 ("phylink: add phylink infrastructure")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 35c7ad35
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -958,7 +958,7 @@ int phylink_ethtool_ksettings_set(struct phylink *pl,
	}
	mutex_unlock(&pl->state_mutex);

	return ret;
	return 0;
}
EXPORT_SYMBOL_GPL(phylink_ethtool_ksettings_set);