Message ID | 20190606123856.18531-1-colin.king@canonical.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | hwmon: nct7904: fix comparison of u8 variable ret with less than zero | expand |
diff --git a/drivers/hwmon/nct7904.c b/drivers/hwmon/nct7904.c index 5fa69898674c..b63f51d0378e 100644 --- a/drivers/hwmon/nct7904.c +++ b/drivers/hwmon/nct7904.c @@ -567,8 +567,7 @@ static int nct7904_write_in(struct device *dev, u32 attr, int channel, long val) { struct nct7904_data *data = dev_get_drvdata(dev); - int ret, index; - u8 tmp; + int ret, index, tmp; index = nct7904_chan_to_index[channel];