summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-05-31 18:55:18 +0000
committerphk <phk@FreeBSD.org>2003-05-31 18:55:18 +0000
commitb11f7951ececfa28b9fe5f05cfedc01fcde978ff (patch)
tree233b1cf4cab2c03f3a6d3bf02359b9ab2944538f /sys
parent86f75c18a65310b3b7e43cb1a8a05136b89a558b (diff)
downloadFreeBSD-src-b11f7951ececfa28b9fe5f05cfedc01fcde978ff.zip
FreeBSD-src-b11f7951ececfa28b9fe5f05cfedc01fcde978ff.tar.gz
Remove unused variable.
Found by: FlexeLint
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ccd/ccd.c2
-rw-r--r--sys/geom/geom_ccd.c2
-rw-r--r--sys/i386/pci/pci_bus.c3
3 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c
index 9af6b4a..541724a 100644
--- a/sys/dev/ccd/ccd.c
+++ b/sys/dev/ccd/ccd.c
@@ -921,7 +921,6 @@ ccdctlioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td)
{
struct ccd_ioctl *ccio;
u_int unit;
- dev_t dev2;
int error;
switch (cmd) {
@@ -978,7 +977,6 @@ ccdctlioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td)
if (!IS_ALLOCATED(unit))
return (ENXIO);
- dev2 = makedev(CDEV_MAJOR, unit * 8 + 2);
cs = ccdfind(unit);
if (!IS_INITED(cs))
return (ENXIO);
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c
index 9af6b4a..541724a 100644
--- a/sys/geom/geom_ccd.c
+++ b/sys/geom/geom_ccd.c
@@ -921,7 +921,6 @@ ccdctlioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td)
{
struct ccd_ioctl *ccio;
u_int unit;
- dev_t dev2;
int error;
switch (cmd) {
@@ -978,7 +977,6 @@ ccdctlioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td)
if (!IS_ALLOCATED(unit))
return (ENXIO);
- dev2 = makedev(CDEV_MAJOR, unit * 8 + 2);
cs = ccdfind(unit);
if (!IS_INITED(cs))
return (ENXIO);
diff --git a/sys/i386/pci/pci_bus.c b/sys/i386/pci/pci_bus.c
index 9e28868..2090b0a 100644
--- a/sys/i386/pci/pci_bus.c
+++ b/sys/i386/pci/pci_bus.c
@@ -426,9 +426,8 @@ nexus_pcib_probe(device_t dev)
static int
nexus_pcib_attach(device_t dev)
{
- device_t child;
- child = device_add_child(dev, "pci", pcib_get_bus(dev));
+ device_add_child(dev, "pci", pcib_get_bus(dev));
return bus_generic_attach(dev);
}
OpenPOWER on IntegriCloud