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>
This commit is contained in:
parent
82a06429ae
commit
515123e286
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue