svn commit: r241048 - head/sys/dev/iicbus

Kevin Lo kevlo at FreeBSD.org
Sat Sep 29 16:15:28 UTC 2012


Author: kevlo
Date: Sat Sep 29 16:15:27 2012
New Revision: 241048
URL: http://svn.freebsd.org/changeset/base/241048

Log:
  Remove unused variables.

Modified:
  head/sys/dev/iicbus/s35390a.c

Modified: head/sys/dev/iicbus/s35390a.c
==============================================================================
--- head/sys/dev/iicbus/s35390a.c	Sat Sep 29 15:08:55 2012	(r241047)
+++ head/sys/dev/iicbus/s35390a.c	Sat Sep 29 16:15:27 2012	(r241048)
@@ -260,10 +260,8 @@ s390rtc_gettime(device_t dev, struct tim
 {
 	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 tim
 {
 	uint8_t bcd[S390_RT1_NBYTES];
 	struct clocktime ct;
-	struct s390rtc_softc *sc;
 
-	sc = device_get_softc(dev);
 	clock_ts_to_ct(ts, &ct);
 
 	/*


More information about the svn-src-all mailing list