From ad74c20a60f81812f9dd3a299e056b191837d7e8 Mon Sep 17 00:00:00 2001 From: Alex Hornung Date: Sat, 3 Oct 2009 16:35:00 +0100 Subject: [PATCH] glxsb/nsclpcsio - cleanup * Cleanup unused variables and incorrect includes. * Add glxsb to sys/dev/crypto/Makefile. --- sys/dev/crypto/Makefile | 2 +- sys/dev/crypto/glxsb/Makefile | 2 +- sys/dev/crypto/glxsb/glxsb.c | 5 ++--- sys/dev/misc/nsclpcsio/nsclpcsio_isa.c | 2 -- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/sys/dev/crypto/Makefile b/sys/dev/crypto/Makefile index 86668cc..17084b7 100644 --- a/sys/dev/crypto/Makefile +++ b/sys/dev/crypto/Makefile @@ -1,6 +1,6 @@ # $DragonFly: src/sys/dev/crypto/Makefile,v 1.1 2003/08/15 08:32:28 dillon Exp $ # -SUBDIR=cryptodev hifn ubsec +SUBDIR=cryptodev glxsb hifn ubsec .include diff --git a/sys/dev/crypto/glxsb/Makefile b/sys/dev/crypto/glxsb/Makefile index 3890d1d..b222982 100644 --- a/sys/dev/crypto/glxsb/Makefile +++ b/sys/dev/crypto/glxsb/Makefile @@ -1,6 +1,6 @@ KMOD= glxsb SRCS= glxsb.c glxsb_hash.c SRCS+= device_if.h bus_if.h pci_if.h opt_bus.h -SRCS+= crypto_if.h cryptodev_if.h +SRCS+= cryptodev_if.h .include diff --git a/sys/dev/crypto/glxsb/glxsb.c b/sys/dev/crypto/glxsb/glxsb.c index f6167a2..85b8478 100644 --- a/sys/dev/crypto/glxsb/glxsb.c +++ b/sys/dev/crypto/glxsb/glxsb.c @@ -54,7 +54,6 @@ #include #include "cryptodev_if.h" -#include "crypto_if.h" #include "glxsb.h" #define PCI_VENDOR_AMD 0x1022 /* AMD */ @@ -317,8 +316,8 @@ glxsb_attach(device_t dev) device_printf(dev, "cannot create task queue\n"); goto fail0; } - if (taskqueue_start_threads(&sc->sc_tq, 1, TDPRI_KERN_DAEMON, "%s taskq", - device_get_nameunit(dev)) != 0) { + if (taskqueue_start_threads(&sc->sc_tq, 1, TDPRI_KERN_DAEMON, -1, + "%s taskq", device_get_nameunit(dev)) != 0) { device_printf(dev, "cannot start task queue\n"); goto fail1; } diff --git a/sys/dev/misc/nsclpcsio/nsclpcsio_isa.c b/sys/dev/misc/nsclpcsio/nsclpcsio_isa.c index 1a26990..237ca6e 100644 --- a/sys/dev/misc/nsclpcsio/nsclpcsio_isa.c +++ b/sys/dev/misc/nsclpcsio/nsclpcsio_isa.c @@ -288,8 +288,6 @@ nsclpcsio_isa_probe(struct device *dev) int nsclpcsio_isa_attach(struct device *dev) { - struct resource *iores; - int iorid; int iobase; struct nsclpcsio_softc *sc = device_get_softc(dev); int i; -- 1.7.7.2