git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Bluetooth] Fix double frees on error paths of btusb and bpa10x drivers
[pandora-kernel.git]
/
drivers
/
rtc
/
rtc-lib.c
diff --git
a/drivers/rtc/rtc-lib.c
b/drivers/rtc/rtc-lib.c
index
9f996ec
..
dd70bf7
100644
(file)
--- a/
drivers/rtc/rtc-lib.c
+++ b/
drivers/rtc/rtc-lib.c
@@
-51,10
+51,11
@@
EXPORT_SYMBOL(rtc_year_days);
*/
void rtc_time_to_tm(unsigned long time, struct rtc_time *tm)
{
*/
void rtc_time_to_tm(unsigned long time, struct rtc_time *tm)
{
- unsigned int days, month, year;
+ unsigned int month, year;
+ int days;
days = time / 86400;
days = time / 86400;
- time -= days * 86400;
+ time -=
(unsigned int)
days * 86400;
/* day of the week, 1970-01-01 was a Thursday */
tm->tm_wday = (days + 4) % 7;
/* day of the week, 1970-01-01 was a Thursday */
tm->tm_wday = (days + 4) % 7;