From: Mike Frysinger Date: Wed, 6 Feb 2008 09:38:50 +0000 (-0800) Subject: Blackfin RTC driver: shave off another memcpy() by using assignment. X-Git-Tag: v2.6.25-rc1~611 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48c1a56b4bf936590ddbee93bf7accf703ec0411;p=linux-2.6 Blackfin RTC driver: shave off another memcpy() by using assignment. Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu Acked-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/rtc-bfin.c b/drivers/rtc/rtc-bfin.c index a4ed2f82a0..69810a2fc4 100644 --- a/drivers/rtc/rtc-bfin.c +++ b/drivers/rtc/rtc-bfin.c @@ -325,7 +325,7 @@ static int bfin_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) { struct bfin_rtc *rtc = dev_get_drvdata(dev); dev_dbg_stamp(dev); - memcpy(&alrm->time, &rtc->rtc_alarm, sizeof(struct rtc_time)); + alrm->time = rtc->rtc_alarm; alrm->enabled = !!(bfin_read_RTC_ICTL() & (RTC_ISTAT_ALARM | RTC_ISTAT_ALARM_DAY)); return 0; }