]> git.karo-electronics.de Git - karo-tx-linux.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)
commit4e2284d23b5124df3a039fce25093bef619731ff
tree6ab08430916a1f85c5673b3d9504d4b367d72104
parentecacb0b17c08fae89f65468727f0e4b8e91da4e1
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