diff options
author | Jean Delvare <khali@linux-fr.org> | 2013-05-19 10:57:30 -0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-05-19 11:19:29 -0400 |
commit | 4e2284d23b5124df3a039fce25093bef619731ff (patch) | |
tree | 6ab08430916a1f85c5673b3d9504d4b367d72104 /drivers/hwmon/tmp401.c | |
parent | ecacb0b17c08fae89f65468727f0e4b8e91da4e1 (diff) |
hwmon: (tmp401) Drop redundant safety on cache lifetime
time_after (as opposed to time_after_equal) already ensures that the
cache lifetime is at least as much as requested. There is no point in
manually adding another jiffy to that value, and this can confuse the
reader into wrong interpretation.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/tmp401.c')
-rw-r--r-- | drivers/hwmon/tmp401.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/tmp401.c b/drivers/hwmon/tmp401.c index a478454f690f..dfe6d9527efb 100644 --- a/drivers/hwmon/tmp401.c +++ b/drivers/hwmon/tmp401.c | |||
@@ -240,7 +240,7 @@ static struct tmp401_data *tmp401_update_device(struct device *dev) | |||
240 | mutex_lock(&data->update_lock); | 240 | mutex_lock(&data->update_lock); |
241 | 241 | ||
242 | next_update = data->last_updated + | 242 | next_update = data->last_updated + |
243 | msecs_to_jiffies(data->update_interval) + 1; | 243 | msecs_to_jiffies(data->update_interval); |
244 | if (time_after(jiffies, next_update) || !data->valid) { | 244 | if (time_after(jiffies, next_update) || !data->valid) { |
245 | if (data->kind != tmp432) { | 245 | if (data->kind != tmp432) { |
246 | /* | 246 | /* |