From 522eff70690e5720b287ca907dd0a9b32b222c21 Mon Sep 17 00:00:00 2001 From: mark Date: Sat, 20 Jun 1998 20:38:33 +0000 Subject: [PATCH] Fix unused variable warning in csCopyTxFrame() when DIAGNOSTIC is not defined. --- sys/arch/arm32/isa/if_cs_isa.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/arch/arm32/isa/if_cs_isa.c b/sys/arch/arm32/isa/if_cs_isa.c index 3686dbf069f9..b621e4784449 100644 --- a/sys/arch/arm32/isa/if_cs_isa.c +++ b/sys/arch/arm32/isa/if_cs_isa.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_cs_isa.c,v 1.2 1998/06/08 20:23:08 tv Exp $ */ +/* $NetBSD: if_cs_isa.c,v 1.3 1998/06/20 20:38:33 mark Exp $ */ /* * Copyright 1997 @@ -3003,7 +3003,10 @@ void csCopyTxFrame( struct cs_softc *sc, struct mbuf *m0 ) struct mbuf *m; int len, leftover, frameoff; u_int16_t dbuf; - u_int8_t *p, *lim; + u_int8_t *p; +#ifdef DIAGNOSTIC + u_int8_t *lim; +#endif /* Initialize frame pointer and data port address */ frameoff = PKTPG_TX_FRAME;