Commit 3be8102fe30c09e9b264a2f08ae2f69da7e32eb4

Authored by Guenter Roeck
1 parent 860f37319e

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/hwmon/lm93.c
... ... @@ -1830,7 +1830,7 @@
1830 1830  
1831 1831 mutex_lock(&data->update_lock);
1832 1832 /* sanity test, ignore the write otherwise */
1833   - if (0 <= val && val <= 2) {
  1833 + if (val <= 2) {
1834 1834 /* can't enable if pwm freq is 22.5KHz */
1835 1835 if (val) {
1836 1836 u8 ctl4 = lm93_read_byte(client,