diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-12-09 13:41:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-11 20:10:55 -0500 |
commit | 515123e286b686d32256342318f20ff932ebac1b (patch) | |
tree | bda0f067d7a433b06f0d74a73930a46d4d7cebd4 /drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c | |
parent | 82a06429ae215b39320e925dfae72419865d6029 (diff) | |
download | linux-stable-515123e286b686d32256342318f20ff932ebac1b.tar.gz linux-stable-515123e286b686d32256342318f20ff932ebac1b.tar.bz2 linux-stable-515123e286b686d32256342318f20ff932ebac1b.zip |
mlxsw: core: remove an unneeded condition
We already know "err" is zero so there is no need to check.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c b/drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c index 4dad146b41ae..913106d37bb0 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c +++ b/drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c @@ -169,7 +169,7 @@ static ssize_t mlxsw_hwmon_pwm_store(struct device *dev, dev_err(mlxsw_hwmon->bus_info->dev, "Failed to write PWM\n"); return err; } - return err ? err : len; + return len; } enum mlxsw_hwmon_attr_type { |