hwmon: (tmp401) Drop redundant safety on cache lifetime
PATCH 1/1 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.
--- drivers/hwmon/tmp401.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/tmp401.c +1 -1
@@ -240,7 +240,7 @@ static struct tmp401_data *tmp401_updatemutex_lock (&data->update_lock); next_update = data->last_updated + -msecs_to_jiffies (data->update_interval) +1 ; +msecs_to_jiffies (data->update_interval);if (time_after (jiffies, next_update) || !data->valid) {if (data->kind != tmp432) {/*
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 8 lines · Jean Delvare
time_after(as opposed totime_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 <[email protected]>Cc Imre Deak <[email protected]>Cc Guenter Roeck <[email protected]>
Are you going to take the series, or do you want me to handle it ?
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 6 lines · Guenter Roeck
Quoted 5 lines · Jean Delvare
time_after(as opposed totime_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.
Quoted 7 lines
Quoted 3 lines
Signed-off-by Jean Delvare <[email protected]>Cc Imre Deak <[email protected]>Cc Guenter Roeck <[email protected]>Acked-by Guenter Roeck <[email protected]>Are you going to take the series, or do you want me to handle it ?
You take tmp401 and I take lm63 and lm90?
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Guenter Roeck
maintainerQuoted 11 lines · Jean Delvare
Quoted 10 lines · Guenter Roeck
Quoted 8 lines · Jean Delvare
time_after(as opposed totime_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 <[email protected]>Cc Imre Deak <[email protected]>Cc Guenter Roeck <[email protected]>
Quoted 6 lines
Quoted 3 lines
Acked-by Guenter Roeck <[email protected]>Are you going to take the series, or do you want me to handle it ?
You take tmp401 and I take lm63 and lm90?
Ok, makes sense.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors