summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2013-09-12 20:20:03 +0000
committermartin <martin@NetBSD.org>2013-09-12 20:20:03 +0000
commitccfcd5c10bb533e48d0d1f746118740f3a3cf1f4 (patch)
tree2c126b5d2499ac14b98c4fed5aa30755dbe00d82 /sys/dev
parent22564218bde9ab89d28f54e37da8c3a2f595e84e (diff)
Remove unused variable
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/i2c/i2c.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/i2c/i2c.c b/sys/dev/i2c/i2c.c
index 8530709bb59..7c12b8f98d8 100644
--- a/sys/dev/i2c/i2c.c
+++ b/sys/dev/i2c/i2c.c
@@ -1,4 +1,4 @@
-/* $NetBSD: i2c.c,v 1.40 2013/08/07 19:38:45 soren Exp $ */
+/* $NetBSD: i2c.c,v 1.41 2013/09/12 20:20:03 martin Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.40 2013/08/07 19:38:45 soren Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.41 2013/09/12 20:20:03 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -306,7 +306,6 @@ iic_smbus_intr_thread(void *aux)
{
i2c_tag_t ic;
struct ic_intr_list *il;
- int rv;
ic = (i2c_tag_t)aux;
ic->ic_running = 1;
@@ -314,7 +313,7 @@ iic_smbus_intr_thread(void *aux)
while (ic->ic_running) {
if (ic->ic_pending == 0)
- rv = tsleep(ic, PZERO, "iicintr", hz);
+ tsleep(ic, PZERO, "iicintr", hz);
if (ic->ic_pending > 0) {
LIST_FOREACH(il, &(ic->ic_proc_list), il_next) {
(*il->il_intr)(il->il_intrarg);