Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/arcbios use (void) when we don't care about the retu...



details:   https://anonhg.NetBSD.org/src/rev/55beda705db8
branches:  trunk
changeset: 325282:55beda705db8
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Dec 16 15:49:00 2013 +0000

description:
use (void) when we don't care about the return value

diffstat:

 sys/dev/arcbios/arcbios_tty.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 556ab8945a20 -r 55beda705db8 sys/dev/arcbios/arcbios_tty.c
--- a/sys/dev/arcbios/arcbios_tty.c     Mon Dec 16 15:48:29 2013 +0000
+++ b/sys/dev/arcbios/arcbios_tty.c     Mon Dec 16 15:49:00 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arcbios_tty.c,v 1.22 2011/04/24 16:26:59 rmind Exp $   */
+/*     $NetBSD: arcbios_tty.c,v 1.23 2013/12/16 15:49:00 mrg Exp $     */
 
 /*
  * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arcbios_tty.c,v 1.22 2011/04/24 16:26:59 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arcbios_tty.c,v 1.23 2013/12/16 15:49:00 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/uio.h>
@@ -235,11 +235,11 @@
 arcbios_tty_poll(void *v)
 {
        struct tty *tp = v;
-       int c, l_r;
+       int c;
 
        while (arcbios_tty_getchar(&c)) {
                if (tp->t_state & TS_ISOPEN)
-                       l_r = (*tp->t_linesw->l_rint)(c, tp);
+                       (void)(*tp->t_linesw->l_rint)(c, tp);
        }
        callout_reset(&arcbios_tty_ch, 1, arcbios_tty_poll, tp);
 }



Home | Main Index | Thread Index | Old Index