Skip to contentSkip to conversation

drivers-rtc-rtc-efic-avoid-subtracting-day-twice-when-computing-year-days.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jun 9, 2014 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

Subject: [merged] drivers-rtc-rtc-efic-avoid-subtracting-day-twice-when-computing-year-days.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
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" <[email protected]>
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.

---

 drivers/rtc/rtc-efi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-efi.c renamed from drivers/rtc/rtc-efi.c~drivers-rtc-rtc-efic-avoid-subtracting-day-twice-when-computing-year-days +1 -1
diff -puN drivers/rtc/rtc-efi.c~drivers-rtc-rtc-efic-avoid-subtracting-day-twice-when-computing-year-days 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 [email protected] are

origin.patch