All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged] drivers-rtc-rtc-efic-avoid-subtracting-day-twice-when-computing-year-days.patch removed from -mm tree
@ 2014-06-09 19:28 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2014-06-09 19:28 UTC (permalink / raw)
  To: mm-commits, jlee, a.zummo, joeyli.kernel

Subject: [merged] drivers-rtc-rtc-efic-avoid-subtracting-day-twice-when-computing-year-days.patch removed from -mm tree
To: joeyli.kernel@gmail.com,a.zummo@towertech.it,jlee@suse.com,mm-commits@vger.kernel.org
From: akpm@linux-foundation.org
Date: Mon, 09 Jun 2014 12:28:52 -0700


The patch titled
     Subject: drivers/rtc/rtc-efi.c: avoid subtracting day twice when computing year days
has been removed from the -mm tree.  Its filename was
     drivers-rtc-rtc-efic-avoid-subtracting-day-twice-when-computing-year-days.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: "Lee, Chun-Yi" <joeyli.kernel@gmail.com>
Subject: 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 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/rtc/rtc-efi.c~drivers-rtc-rtc-efic-avoid-subtracting-day-twice-when-computing-year-days drivers/rtc/rtc-efi.c
--- a/drivers/rtc/rtc-efi.c~drivers-rtc-rtc-efic-avoid-subtracting-day-twice-when-computing-year-days
+++ a/drivers/rtc/rtc-efi.c
@@ -35,7 +35,7 @@ static inline int
 compute_yday(efi_time_t *eft)
 {
 	/* efi_time_t.month is in the [1-12] so, we need -1 */
-	return rtc_year_days(eft->day - 1, eft->month - 1, eft->year);
+	return rtc_year_days(eft->day, eft->month - 1, eft->year);
 }
 /*
  * returns day of the week [0-6] 0=Sunday
_

Patches currently in -mm which might be from joeyli.kernel@gmail.com are

origin.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-09 19:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-09 19:28 [merged] drivers-rtc-rtc-efic-avoid-subtracting-day-twice-when-computing-year-days.patch removed from -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.