summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-lib.c
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2017-05-10 07:44:50 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2017-05-11 08:02:47 +0200
commit0bed8c578c8df18353495cde574b622e70fbcee5 (patch)
tree3811445cfac867d5288c9e5b29516e0161e823ff /drivers/rtc/rtc-lib.c
parent85dffaacfa3c7eedc8fc8ea12da27a19720e2483 (diff)
downloadbarebox-0bed8c578c8df18353495cde574b622e70fbcee5.tar.gz
barebox-0bed8c578c8df18353495cde574b622e70fbcee5.tar.xz
rtc-lib: drop unused rtc_ydays
The patch fixes this compiler's warning: drivers/rtc/rtc-lib.c:23:29: warning: ‘rtc_ydays’ defined but not used [-Wunused-const-variable=] static const unsigned short rtc_ydays[2][13] = { ^~~~~~~~~ Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/rtc/rtc-lib.c')
-rw-r--r--drivers/rtc/rtc-lib.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/rtc/rtc-lib.c b/drivers/rtc/rtc-lib.c
index 83d80455da..4a2d34fcfd 100644
--- a/drivers/rtc/rtc-lib.c
+++ b/drivers/rtc/rtc-lib.c
@@ -20,13 +20,6 @@ static const unsigned char rtc_days_in_month[] = {
31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
};
-static const unsigned short rtc_ydays[2][13] = {
- /* Normal years */
- { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 },
- /* Leap years */
- { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366 }
-};
-
#define LEAPS_THRU_END_OF(y) ((y)/4 - (y)/100 + (y)/400)
/*