diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2008-11-08 01:32:07 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2008-11-08 01:32:07 +0000 |
commit | 7937d7f88da4a24572e379ed37891766cc640acf (patch) | |
tree | c7ef372678db9addc4a02868f4cb2cc30a1ffa4f /sys/dev/ata | |
parent | ffac49ababff94d50dafec7b33a1efa97fa87ad1 (diff) |
remove dead stores and newly created unused variables.
Found by LLVM/Clang Static Analyzer.
ok krw@
Diffstat (limited to 'sys/dev/ata')
-rw-r--r-- | sys/dev/ata/wd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c index e300d4d920c..045f8188f3b 100644 --- a/sys/dev/ata/wd.c +++ b/sys/dev/ata/wd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wd.c,v 1.72 2008/09/10 14:01:22 blambert Exp $ */ +/* $OpenBSD: wd.c,v 1.73 2008/11/08 01:32:06 chl Exp $ */ /* $NetBSD: wd.c,v 1.193 1999/02/28 17:15:27 explorer Exp $ */ /* @@ -217,16 +217,12 @@ wdattach(struct device *parent, struct device *self, void *aux) struct wd_softc *wd = (void *)self; struct ata_atapi_attach *aa_link= aux; struct wdc_command wdc_c; - struct channel_softc *chp; int i, blank; - u_int8_t drive; char buf[41], c, *p, *q; WDCDEBUG_PRINT(("wdattach\n"), DEBUG_FUNCS | DEBUG_PROBE); wd->openings = aa_link->aa_openings; wd->drvp = aa_link->aa_drv_data; - chp = wd->drvp->chnl_softc; - drive = wd->drvp->drive; strlcpy(wd->drvp->drive_name, wd->sc_dev.dv_xname, sizeof(wd->drvp->drive_name)); |