]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-efi.c: avoid subtracting day twice when computing year days
authorLee, Chun-Yi <joeyli.kernel@gmail.com>
Thu, 22 May 2014 00:43:48 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:48 +0000 (10:43 +1000)
commitd5245207b9725813760d3add97af9eea17db0239
tree4368a74d0c55acf0ea4996811292c3a07942aba7
parent440c96e39c494b5bb36bb704bb9b18be019249d3
drivers/rtc/rtc-efi.c: avoid subtracting day twice when computing year days

Compared source code of rtc-lib.c::rtc_year_days() with
efirtc.c::rtc_year_days(), found the code in rtc-efi decreases value of
day twice when it computing year days.  rtc-lib.c::rtc_year_days() has
already decrease days and return the year days from 0 to 365.

Signed-off-by: Lee, Chun-Yi <jlee@suse.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-efi.c