diff options
author | archie <archie@FreeBSD.org> | 1998-12-07 21:58:50 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 1998-12-07 21:58:50 +0000 |
commit | 60d13c7a9dd18f720483338ebef03609492ca98c (patch) | |
tree | 5709d8cdab99e3c1cb9ae7c2117627c1031fdf39 /sys/dev/iicbus | |
parent | 2f8d013d96c256b3a48e227aab238e53eb9304cf (diff) | |
download | FreeBSD-src-60d13c7a9dd18f720483338ebef03609492ca98c.zip FreeBSD-src-60d13c7a9dd18f720483338ebef03609492ca98c.tar.gz |
The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static
and local variables, goto labels, and functions declared but not defined.
Diffstat (limited to 'sys/dev/iicbus')
-rw-r--r-- | sys/dev/iicbus/if_ic.c | 3 | ||||
-rw-r--r-- | sys/dev/iicbus/iic.c | 4 | ||||
-rw-r--r-- | sys/dev/iicbus/iicbus.c | 10 |
3 files changed, 4 insertions, 13 deletions
diff --git a/sys/dev/iicbus/if_ic.c b/sys/dev/iicbus/if_ic.c index 540b07f..7af9db7 100644 --- a/sys/dev/iicbus/if_ic.c +++ b/sys/dev/iicbus/if_ic.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_ic.c,v 1.1.1.1 1998/09/03 20:51:50 nsouch Exp $ + * $Id: if_ic.c,v 1.2 1998/10/31 11:31:07 nsouch Exp $ */ /* @@ -290,7 +290,6 @@ icintr (device_t dev, int event, char *ptr) int unit = device_get_unit(dev); int s, len; struct mbuf *top; - int i; s = splhigh(); diff --git a/sys/dev/iicbus/iic.c b/sys/dev/iicbus/iic.c index ccebb5b..e2d59fd 100644 --- a/sys/dev/iicbus/iic.c +++ b/sys/dev/iicbus/iic.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: iic.c,v 1.3 1998/09/09 18:57:24 nsouch Exp $ + * $Id: iic.c,v 1.4 1998/10/31 11:31:07 nsouch Exp $ * */ #include <sys/param.h> @@ -117,8 +117,6 @@ iic_probe(device_t dev) static int iic_attach(device_t dev) { - struct iic_softc *sc = (struct iic_softc *)device_get_softc(dev); - return (0); } diff --git a/sys/dev/iicbus/iicbus.c b/sys/dev/iicbus/iicbus.c index 35fa610..fd982ce 100644 --- a/sys/dev/iicbus/iicbus.c +++ b/sys/dev/iicbus/iicbus.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: iicbus.c,v 1.4 1998/11/08 18:42:34 nsouch Exp $ + * $Id: iicbus.c,v 1.5 1998/11/22 22:01:42 nsouch Exp $ * */ @@ -125,8 +125,6 @@ iicbus_probe(device_t dev) return (0); } -static int iicdev_found[LAST_SLAVE_ADDR+1]; - static int iic_probe_device(device_t dev, u_char addr) { @@ -155,11 +153,9 @@ iic_probe_device(device_t dev, u_char addr) static int iicbus_attach(device_t dev) { - struct iicbus_softc *sc = device_get_softc(dev); struct iicbus_device *iicdev; device_t child; - int addr, count; - char byte; + int addr; iicbus_reset(dev, IIC_FASTEST, 0, NULL); @@ -265,8 +261,6 @@ iicbus_read_ivar(device_t bus, device_t dev, int index, u_long* result) static int iicbus_write_ivar(device_t bus, device_t dev, int index, u_long val) { - struct iicbus_device* iicdev = DEVTOIICBUS(dev); - switch (index) { default: return (ENOENT); |