Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ieee1394 Remove unused variables



details:   https://anonhg.NetBSD.org/src/rev/36125075a7c3
branches:  trunk
changeset: 790042:36125075a7c3
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Sep 15 13:52:23 2013 +0000

description:
Remove unused variables

diffstat:

 sys/dev/ieee1394/sbp.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (63 lines):

diff -r 9122a18c1396 -r 36125075a7c3 sys/dev/ieee1394/sbp.c
--- a/sys/dev/ieee1394/sbp.c    Sun Sep 15 13:49:25 2013 +0000
+++ b/sys/dev/ieee1394/sbp.c    Sun Sep 15 13:52:23 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sbp.c,v 1.34 2012/04/29 20:27:31 dsl Exp $     */
+/*     $NetBSD: sbp.c,v 1.35 2013/09/15 13:52:23 martin Exp $  */
 /*-
  * Copyright (c) 2003 Hidetoshi Shimokawa
  * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sbp.c,v 1.34 2012/04/29 20:27:31 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sbp.c,v 1.35 2013/09/15 13:52:23 martin Exp $");
 
 
 #include <sys/param.h>
@@ -1112,7 +1112,6 @@
 sbp_mgm_callback(struct fw_xfer *xfer)
 {
        struct sbp_dev *sdev;
-       int resp;
 
        sdev = (struct sbp_dev *)xfer->sc;
 
@@ -1120,7 +1119,6 @@
        printf("%s: sbp_mgm_callback: %s\n",
            device_xname(sdev->target->sbp->sc_fd.dev), sdev->bustgtlun);
 END_DEBUG
-       resp = xfer->resp;
        sbp_xfer_free(xfer);
        return;
 }
@@ -2140,12 +2138,10 @@
 static void
 sbp_target_reset(struct sbp_dev *sdev, int method)
 {
-       struct sbp_softc *sc;
        struct sbp_target *target = sdev->target;
        struct sbp_dev *tsdev;
        int i;
 
-       sc = target->sbp;
        for (i = 0; i < target->num_lun; i++) {
                tsdev = target->luns[i];
                if (tsdev == NULL)
@@ -2408,7 +2404,6 @@
        struct sbp_ocb *ocb;
        struct sbp_ocb *next;
        int order = 0;
-       int flags;
 
 SBP_DEBUG(1)
        printf("%s:%s:%s: 0x%08x src %d\n", device_xname(sc->sc_fd.dev),
@@ -2418,7 +2413,6 @@
        mutex_enter(&sc->sc_mtx);
        for (ocb = STAILQ_FIRST(&sdev->ocbs); ocb != NULL; ocb = next) {
                next = STAILQ_NEXT(ocb, ocb);
-               flags = ocb->flags;
                if (OCB_MATCH(ocb, sbp_status)) {
                        /* found */
                        SBP_ORB_DMA_SYNC(sdev->dma, ocb->index,



Home | Main Index | Thread Index | Old Index