Module Name: src
Committed By: christos
Date: Thu Oct 17 21:16:13 UTC 2013
Modified Files:
src/sys/dev/i2o: iop.c
Log Message:
remove unused variables and __USE a debugging variable
To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 src/sys/dev/i2o/iop.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/i2o/iop.c
diff -u src/sys/dev/i2o/iop.c:1.83 src/sys/dev/i2o/iop.c:1.84
--- src/sys/dev/i2o/iop.c:1.83 Sat Sep 14 09:08:31 2013
+++ src/sys/dev/i2o/iop.c Thu Oct 17 17:16:12 2013
@@ -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 @@ static void
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 @@ iop_msg_wait(struct iop_softc *sc, struc
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
}