diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-08-20 15:06:04 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-20 15:06:04 +0900 |
commit | e0fa7e5803382c4b42ed693be55463e878900a63 (patch) | |
tree | fe89ae1a921489997b697ee7d96a79b570456444 /drivers | |
parent | 485f0720c3e0f57deac403acfbf078a89baeb6ba (diff) | |
download | linux-stable-e0fa7e5803382c4b42ed693be55463e878900a63.tar.gz linux-stable-e0fa7e5803382c4b42ed693be55463e878900a63.tar.bz2 linux-stable-e0fa7e5803382c4b42ed693be55463e878900a63.zip |
rtc: rtc-ds1302: Kill off unused variables.
There were a few stray unused variables left over, kill them off.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/rtc/rtc-ds1302.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-ds1302.c b/drivers/rtc/rtc-ds1302.c index c64e2d7871b2..d490628b64da 100644 --- a/drivers/rtc/rtc-ds1302.c +++ b/drivers/rtc/rtc-ds1302.c @@ -97,8 +97,6 @@ static void ds1302_writebyte(unsigned int addr, unsigned int val) static int ds1302_rtc_read_time(struct device *dev, struct rtc_time *tm) { - struct ds1302_rtc *rtc = dev_get_drvdata(dev); - tm->tm_sec = bcd2bin(ds1302_readbyte(RTC_ADDR_SEC)); tm->tm_min = bcd2bin(ds1302_readbyte(RTC_ADDR_MIN)); tm->tm_hour = bcd2bin(ds1302_readbyte(RTC_ADDR_HOUR)); @@ -169,7 +167,6 @@ static struct rtc_class_ops ds1302_rtc_ops = { static int __init ds1302_rtc_probe(struct platform_device *pdev) { struct rtc_device *rtc; - int ret; /* Reset */ set_dp(get_dp() & ~(RTC_RESET | RTC_IODATA | RTC_SCLK)); |