diff options
author | Lee, Chun-Yi <joeyli.kernel@gmail.com> | 2014-06-06 14:35:48 -0700 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-08-26 14:12:24 +0200 |
commit | e7afccd211af3976fd1c874d9aea7dee0005921e (patch) | |
tree | 2879fe09ad6381df000fd3fa14e6ebf493c88e5d /drivers/rtc/interface.c | |
parent | 8df01ee264d62a04507fbf7e28416953861fc0d1 (diff) |
drivers/rtc/rtc-efi.c: avoid subtracting day twice when computing year days
commit 809d9627087e1db63b8672c1f264af73b13116fb upstream.
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/rtc/interface.c')
0 files changed, 0 insertions, 0 deletions