summaryrefslogtreecommitdiffstats
path: root/sys/dev/iicbus
diff options
context:
space:
mode:
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