mlxsw: core: remove an unneeded condition
PATCH 1/1 mlxsw: core: remove an unneeded condition
We already know "err" is zero so there is no need to check.
Signed-off-by Dan Carpenter <[email protected]>
drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c +1 -1
@@ -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 {
Quoted 3 lines · Wed, Dec 09, 2015 at 11:41:29AM CET, [email protected] wrote:
We already know "err" is zero so there is no need to check.
Signed-off-by Dan Carpenter <[email protected]>
Acked-by Jiri Pirko <[email protected]>
Thanks.
From: Dan Carpenter <[email protected]>
Date: Wed, 9 Dec 2015 13:41:29 +0300
Quoted 3 lines
We already know "err" is zero so there is no need to check.
Signed-off-by Dan Carpenter <[email protected]>
Applied.