summaryrefslogtreecommitdiffstats
path: root/sys/dev/iicbus
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2012-09-29 16:15:27 +0000
committerkevlo <kevlo@FreeBSD.org>2012-09-29 16:15:27 +0000
commit147924627e58640acfd519f6502892a7a5547369 (patch)
tree14f4d45d78b5bd4353cc70915789d5cde9b21b8a /sys/dev/iicbus
parent56dc079ef658f099773c68abf36bec0905b04fa6 (diff)
downloadFreeBSD-src-147924627e58640acfd519f6502892a7a5547369.zip
FreeBSD-src-147924627e58640acfd519f6502892a7a5547369.tar.gz
Remove unused variables.
Diffstat (limited to 'sys/dev/iicbus')
-rw-r--r--sys/dev/iicbus/s35390a.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/iicbus/s35390a.c b/sys/dev/iicbus/s35390a.c
index fc175c2..59369b3 100644
--- a/sys/dev/iicbus/s35390a.c
+++ b/sys/dev/iicbus/s35390a.c
@@ -260,10 +260,8 @@ s390rtc_gettime(device_t dev, struct timespec *ts)
{
uint8_t bcd[S390_RT1_NBYTES];
struct clocktime ct;
- struct s390rtc_softc *sc;
int error;
- sc = device_get_softc(dev);
error = s390rtc_read(dev, S390_REALTIME1, bcd, S390_RT1_NBYTES);
if (error) {
device_printf(dev, "%s: cannot read realtime1 register\n",
@@ -291,9 +289,7 @@ s390rtc_settime(device_t dev, struct timespec *ts)
{
uint8_t bcd[S390_RT1_NBYTES];
struct clocktime ct;
- struct s390rtc_softc *sc;
- sc = device_get_softc(dev);
clock_ts_to_ct(ts, &ct);
/*
OpenPOWER on IntegriCloud