diff options
-rw-r--r-- | drivers/hwmon/f75375s.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/f75375s.c b/drivers/hwmon/f75375s.c index 13a041326a04..59a3470d6cf9 100644 --- a/drivers/hwmon/f75375s.c +++ b/drivers/hwmon/f75375s.c | |||
@@ -323,7 +323,7 @@ static ssize_t set_pwm_mode(struct device *dev, struct device_attribute *attr, | |||
323 | int val = simple_strtoul(buf, NULL, 10); | 323 | int val = simple_strtoul(buf, NULL, 10); |
324 | u8 conf = 0; | 324 | u8 conf = 0; |
325 | 325 | ||
326 | if (val != 0 || val != 1 || data->kind == f75373) | 326 | if (!(val == 0 || val == 1) || data->kind == f75373) |
327 | return -EINVAL; | 327 | return -EINVAL; |
328 | 328 | ||
329 | mutex_lock(&data->update_lock); | 329 | mutex_lock(&data->update_lock); |