mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
hwmon: (lm93) Drop unnecessary compare statement
The following build warning is seen with -Wextra. lm93.c: In function ‘store_fan_smart_tach’: lm93.c:1833:2: warning: comparison of unsigned expression >= 0 is always true Drop the unnecessary comparison. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Jean Delvare <khali@linux-fr.org>
This commit is contained in:
parent
860f37319e
commit
3be8102fe3
1 changed files with 1 additions and 1 deletions
|
@ -1830,7 +1830,7 @@ static ssize_t store_fan_smart_tach(struct device *dev,
|
|||
|
||||
mutex_lock(&data->update_lock);
|
||||
/* sanity test, ignore the write otherwise */
|
||||
if (0 <= val && val <= 2) {
|
||||
if (val <= 2) {
|
||||
/* can't enable if pwm freq is 22.5KHz */
|
||||
if (val) {
|
||||
u8 ctl4 = lm93_read_byte(client,
|
||||
|
|
Loading…
Reference in a new issue