Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/i2o remove unused variables and __USE a debugging va...



details:   https://anonhg.NetBSD.org/src/rev/265d945aed82
branches:  trunk
changeset: 790584:265d945aed82
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 17 21:16:12 2013 +0000

description:
remove unused variables and __USE a debugging variable

diffstat:

 sys/dev/i2o/iop.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (49 lines):

diff -r 82abde465ea4 -r 265d945aed82 sys/dev/i2o/iop.c
--- a/sys/dev/i2o/iop.c Thu Oct 17 21:15:18 2013 +0000
+++ b/sys/dev/i2o/iop.c Thu Oct 17 21:16:12 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iop.c,v 1.83 2013/09/14 13:08:31 joerg Exp $   */
+/*     $NetBSD: iop.c,v 1.84 2013/10/17 21:16:12 christos Exp $        */
 
 /*-
  * Copyright (c) 2000, 2001, 2002, 2007 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: iop.c,v 1.83 2013/09/14 13:08:31 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: iop.c,v 1.84 2013/10/17 21:16:12 christos Exp $");
 
 #include "iop.h"
 
@@ -607,14 +607,12 @@
 iop_reconf_thread(void *cookie)
 {
        struct iop_softc *sc;
-       struct lwp *l;
        struct i2o_lct lct;
        u_int32_t chgind;
        int rv;
 
        sc = cookie;
        chgind = sc->sc_chgind + 1;
-       l = curlwp;
 
        for (;;) {
                DPRINTF(("%s: async reconfig: requested 0x%08x\n",
@@ -2239,11 +2237,13 @@
        if (rv != 0) {
                printf("iop_msg_wait: tsleep() == %d\n", rv);
                if (iop_status_get(sc, 0) != 0)
-                       printf("iop_msg_wait: unable to retrieve status\n");
+                       printf("%s: unable to retrieve status\n", __func__);
                else
-                       printf("iop_msg_wait: IOP state = %d\n",
+                       printf("%s: IOP state = %d\n", __func__,
                            (le32toh(sc->sc_status.segnumber) >> 16) & 0xff);
        }
+#else
+       __USE(rv);
 #endif
 }
 



Home | Main Index | Thread Index | Old Index