]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (tmp401) Drop redundant safety on cache lifetime
authorJean Delvare <khali@linux-fr.org>
Sun, 19 May 2013 14:57:30 +0000 (16:57 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 19 May 2013 15:19:29 +0000 (08:19 -0700)
commit68d4c105fb893d9c774be6bdc1d58f183d7d3a16
tree6ab08430916a1f85c5673b3d9504d4b367d72104
parent6e698ec307a6064d9beb2ae05234fab80ece5915
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>
drivers/hwmon/tmp401.c