mlxsw: spectrum_ethtool: Remove redundant variable
Remove the 'err' variable and simply return. Signed-off-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ab14f1802c
commit
5c759fe24c
@ -1034,13 +1034,10 @@ static int mlxsw_sp_get_module_info(struct net_device *netdev,
|
||||
{
|
||||
struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(netdev);
|
||||
struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp;
|
||||
int err;
|
||||
|
||||
err = mlxsw_env_get_module_info(mlxsw_sp->core,
|
||||
mlxsw_sp_port->mapping.module,
|
||||
modinfo);
|
||||
|
||||
return err;
|
||||
return mlxsw_env_get_module_info(mlxsw_sp->core,
|
||||
mlxsw_sp_port->mapping.module,
|
||||
modinfo);
|
||||
}
|
||||
|
||||
static int mlxsw_sp_get_module_eeprom(struct net_device *netdev,
|
||||
@ -1048,13 +1045,10 @@ static int mlxsw_sp_get_module_eeprom(struct net_device *netdev,
|
||||
{
|
||||
struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(netdev);
|
||||
struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp;
|
||||
int err;
|
||||
|
||||
err = mlxsw_env_get_module_eeprom(netdev, mlxsw_sp->core,
|
||||
mlxsw_sp_port->mapping.module, ee,
|
||||
data);
|
||||
|
||||
return err;
|
||||
return mlxsw_env_get_module_eeprom(netdev, mlxsw_sp->core,
|
||||
mlxsw_sp_port->mapping.module, ee,
|
||||
data);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
x
Reference in New Issue
Block a user