aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2013-07-08 14:18:24 +0200
committerJean Delvare <khali@endymion.delvare>2013-07-08 14:18:24 +0200
commit78c2c2fe59b8c6b7d20e163efde0bfccc679f647 (patch)
treefbd27c61aa1302224bbf3801124fc282676fe878 /drivers
parentd2b4a646717153a1a180b64d4a8464054dbd700e (diff)
downloadkernel_goldelico_gta04-78c2c2fe59b8c6b7d20e163efde0bfccc679f647.zip
kernel_goldelico_gta04-78c2c2fe59b8c6b7d20e163efde0bfccc679f647.tar.gz
kernel_goldelico_gta04-78c2c2fe59b8c6b7d20e163efde0bfccc679f647.tar.bz2
hwmon: (lm90) 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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwmon/lm90.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c
index 8eeb141..cdff742 100644
--- a/drivers/hwmon/lm90.c
+++ b/drivers/hwmon/lm90.c
@@ -470,8 +470,8 @@ static struct lm90_data *lm90_update_device(struct device *dev)
mutex_lock(&data->update_lock);
- next_update = data->last_updated
- + msecs_to_jiffies(data->update_interval) + 1;
+ next_update = data->last_updated +
+ msecs_to_jiffies(data->update_interval);
if (time_after(jiffies, next_update) || !data->valid) {
u8 h, l;
u8 alarms;