diff options
Diffstat (limited to 'drivers/rtc/rtc-proc.c')
-rw-r--r-- | drivers/rtc/rtc-proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-proc.c b/drivers/rtc/rtc-proc.c index 1b2c2caa2a99..2943d83edfd1 100644 --- a/drivers/rtc/rtc-proc.c +++ b/drivers/rtc/rtc-proc.c | |||
@@ -61,7 +61,7 @@ static int rtc_proc_show(struct seq_file *seq, void *offset) | |||
61 | seq_printf(seq, "%02d-", alrm.time.tm_mon + 1); | 61 | seq_printf(seq, "%02d-", alrm.time.tm_mon + 1); |
62 | else | 62 | else |
63 | seq_printf(seq, "**-"); | 63 | seq_printf(seq, "**-"); |
64 | if ((unsigned int)alrm.time.tm_mday <= 31) | 64 | if (alrm.time.tm_mday && (unsigned int)alrm.time.tm_mday <= 31) |
65 | seq_printf(seq, "%02d\n", alrm.time.tm_mday); | 65 | seq_printf(seq, "%02d\n", alrm.time.tm_mday); |
66 | else | 66 | else |
67 | seq_printf(seq, "**\n"); | 67 | seq_printf(seq, "**\n"); |