Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sun68k/stand/libsa fix unused variables



details:   https://anonhg.NetBSD.org/src/rev/2f8e7229eef4
branches:  trunk
changeset: 791154:2f8e7229eef4
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Nov 07 00:42:42 2013 +0000

description:
fix unused variables

diffstat:

 sys/arch/sun68k/stand/libsa/netif_sun.c |  6 +++---
 sys/arch/sun68k/stand/libsa/promdev.c   |  4 +---
 2 files changed, 4 insertions(+), 6 deletions(-)

diffs (50 lines):

diff -r 489da3a39e34 -r 2f8e7229eef4 sys/arch/sun68k/stand/libsa/netif_sun.c
--- a/sys/arch/sun68k/stand/libsa/netif_sun.c   Thu Nov 07 00:17:00 2013 +0000
+++ b/sys/arch/sun68k/stand/libsa/netif_sun.c   Thu Nov 07 00:42:42 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netif_sun.c,v 1.9 2009/01/17 12:47:02 he Exp $ */
+/*     $NetBSD: netif_sun.c,v 1.10 2013/11/07 00:42:42 christos Exp $  */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -278,7 +278,7 @@
        struct devdata *dd;
        struct saioreq *si;
        struct saif *sif;
-       int rv, slen;
+       int slen;
 
 #ifdef NETIF_DEBUG
        if (debug > 1) {
@@ -318,7 +318,7 @@
                slen = 60;
        }
 
-       rv = (*sif->sif_xmit)(si->si_devdata, dd->tbuf, slen);
+       (void)(*sif->sif_xmit)(si->si_devdata, dd->tbuf, slen);
 
 #ifdef NETIF_DEBUG
        if (debug > 1)
diff -r 489da3a39e34 -r 2f8e7229eef4 sys/arch/sun68k/stand/libsa/promdev.c
--- a/sys/arch/sun68k/stand/libsa/promdev.c     Thu Nov 07 00:17:00 2013 +0000
+++ b/sys/arch/sun68k/stand/libsa/promdev.c     Thu Nov 07 00:42:42 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: promdev.c,v 1.5 2009/01/12 07:00:59 tsutsui Exp $ */
+/*     $NetBSD: promdev.c,v 1.6 2013/11/07 00:42:42 christos Exp $ */
 
 /*
  * Copyright (c) 1995 Gordon W. Ross
@@ -143,13 +143,11 @@
 prom_iclose(struct saioreq *si)
 {
        struct boottab *ops;
-       struct devinfo *dip;
 
        if (promdev_inuse == 0)
                return;
 
        ops = si->si_boottab;
-       dip = ops->b_devinfo;
 
 #ifdef DEBUG_PROM
        if (debug)



Home | Main Index | Thread Index | Old Index