From 7937d7f88da4a24572e379ed37891766cc640acf Mon Sep 17 00:00:00 2001 From: Charles Longeau Date: Sat, 8 Nov 2008 01:32:07 +0000 Subject: remove dead stores and newly created unused variables. Found by LLVM/Clang Static Analyzer. ok krw@ --- sys/dev/ata/wd.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sys/dev/ata') 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)); -- cgit v1.2.3