Commit 515123e2 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

mlxsw: core: remove an unneeded condition

We already know "err" is zero so there is no need to check.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 82a06429
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment