|
@@ -161,7 +161,7 @@ static int at91_rtc_readalarm(struct device *dev, struct rtc_wkalrm *alrm)
|
|
if (offset == 0)
|
|
if (offset == 0)
|
|
return -EILSEQ;
|
|
return -EILSEQ;
|
|
|
|
|
|
- memset(alrm, 0, sizeof(alrm));
|
|
|
|
|
|
+ memset(alrm, 0, sizeof(*alrm));
|
|
if (alarm != ALARM_DISABLED && offset != 0) {
|
|
if (alarm != ALARM_DISABLED && offset != 0) {
|
|
rtc_time_to_tm(offset + alarm, tm);
|
|
rtc_time_to_tm(offset + alarm, tm);
|
|
|
|
|