diff options
| author | mrg <mrg@NetBSD.org> | 2013-12-16 15:49:25 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2013-12-16 15:49:25 +0000 |
| commit | 409d3fe12f99f67a8480bef0eb92e3d10ffabbbf (patch) | |
| tree | 98668c663107a706c2ddcaeb8b90502d3c6fa74f /sys/dev | |
| parent | 3be678b5ab9eefd186f298b70aa27daa78a22c4f (diff) | |
avoid unused variables outside of diag code.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/osiop.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/ic/osiop.c b/sys/dev/ic/osiop.c index 916951db37c..44e6c3ca1a8 100644 --- a/sys/dev/ic/osiop.c +++ b/sys/dev/ic/osiop.c @@ -1,4 +1,4 @@ -/* $NetBSD: osiop.c,v 1.39 2010/11/13 13:52:02 uebayasi Exp $ */ +/* $NetBSD: osiop.c,v 1.40 2013/12/16 15:49:25 mrg Exp $ */ /*- * Copyright (c) 2001 Izumi Tsutsui. All rights reserved. @@ -95,7 +95,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: osiop.c,v 1.39 2010/11/13 13:52:02 uebayasi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: osiop.c,v 1.40 2013/12/16 15:49:25 mrg Exp $"); /* #define OSIOP_DEBUG */ @@ -357,7 +357,6 @@ osiop_scsipi_request(struct scsipi_channel *chan, scsipi_adapter_req_t req, void *arg) { struct scsipi_xfer *xs; - struct scsipi_periph *periph; struct osiop_acb *acb; struct osiop_softc *sc; int err, flags, s; @@ -367,7 +366,6 @@ osiop_scsipi_request(struct scsipi_channel *chan, scsipi_adapter_req_t req, switch (req) { case ADAPTER_REQ_RUN_XFER: xs = arg; - periph = xs->xs_periph; flags = xs->xs_control; /* XXXX ?? */ @@ -389,7 +387,7 @@ osiop_scsipi_request(struct scsipi_channel *chan, scsipi_adapter_req_t req, } #ifdef DIAGNOSTIC else { - scsipi_printaddr(periph); + scsipi_printaddr(xs->xs_periph); printf("unable to allocate acb\n"); panic("osiop_scsipi_request"); } |
