]> 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)
commitf05fdf893109d7d1a348dfc425862067fbe2ccd8
tree6ab08430916a1f85c5673b3d9504d4b367d72104
parente0a0879928d783715b22dd9e4167307e1a479ee5
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