diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2017-02-12 17:12:38 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2017-02-12 17:12:38 +0000 |
commit | 743d6d293033a9b247e98608627d17845c4575f4 (patch) | |
tree | 8cc9e464ca67e1a068cd949d5b7543fef9c482d7 /sys | |
parent | d9500c76da467a7a5ce3b76d63ad52f355b00316 (diff) |
Remove dead assignment and now unused variable.
Found by LLVM/Clang Static Analyzer.
ok dlg@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/vscsi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/vscsi.c b/sys/dev/vscsi.c index 48a700636d6..cdba3e84048 100644 --- a/sys/dev/vscsi.c +++ b/sys/dev/vscsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vscsi.c,v 1.40 2016/09/15 02:00:17 dlg Exp $ */ +/* $OpenBSD: vscsi.c,v 1.41 2017/02/12 17:12:37 chl Exp $ */ /* * Copyright (c) 2008 David Gwynne <dlg@openbsd.org> @@ -429,7 +429,6 @@ vscsi_t2i(struct vscsi_softc *sc, struct vscsi_ioc_t2i *t2i) { struct vscsi_ccb *ccb; struct scsi_xfer *xs; - struct scsi_link *link; int rv = 0; TAILQ_FOREACH(ccb, &sc->sc_ccb_t2i, ccb_entry) { @@ -442,7 +441,6 @@ vscsi_t2i(struct vscsi_softc *sc, struct vscsi_ioc_t2i *t2i) TAILQ_REMOVE(&sc->sc_ccb_t2i, ccb, ccb_entry); xs = ccb->ccb_xs; - link = xs->sc_link; xs->resid = xs->datalen - ccb->ccb_datalen; xs->status = SCSI_OK; |