Module Name:    src
Committed By:   mrg
Date:           Mon Dec 16 15:49:25 UTC 2013

Modified Files:
        src/sys/dev/ic: osiop.c

Log Message:
avoid unused variables outside of diag code.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/ic/osiop.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/osiop.c
diff -u src/sys/dev/ic/osiop.c:1.39 src/sys/dev/ic/osiop.c:1.40
--- src/sys/dev/ic/osiop.c:1.39	Sat Nov 13 13:52:02 2010
+++ src/sys/dev/ic/osiop.c	Mon Dec 16 15:49:25 2013
@@ -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_chann
     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_chann
 	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_chann
 		}
 #ifdef DIAGNOSTIC
 		else {
-			scsipi_printaddr(periph);
+			scsipi_printaddr(xs->xs_periph);
 			printf("unable to allocate acb\n");
 			panic("osiop_scsipi_request");
 		}

Reply via email to