fix unused variables

This commit is contained in:
christos 2013-11-07 00:42:42 +00:00
parent de90c97c82
commit 15607b72ed
2 changed files with 4 additions and 6 deletions

View File

@ -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 @@ netif_put(struct iodesc *desc, void *pkt, size_t len)
struct devdata *dd;
struct saioreq *si;
struct saif *sif;
int rv, slen;
int slen;
#ifdef NETIF_DEBUG
if (debug > 1) {
@ -318,7 +318,7 @@ netif_put(struct iodesc *desc, void *pkt, size_t len)
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)

View File

@ -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 @@ void
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)