move EVCNT only variable inside #ifdef
This commit is contained in:
parent
5818b5f944
commit
e4e90575bc
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_kse.c,v 1.24 2013/03/30 03:21:06 christos Exp $ */
|
||||
/* $NetBSD: if_kse.c,v 1.25 2013/11/08 06:20:48 nisimura Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 The NetBSD Foundation, Inc.
|
||||
@ -30,7 +30,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_kse.c,v 1.24 2013/03/30 03:21:06 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_kse.c,v 1.25 2013/11/08 06:20:48 nisimura Exp $");
|
||||
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -350,7 +350,7 @@ kse_attach(device_t parent, device_t self, void *aux)
|
||||
struct ifmedia *ifm;
|
||||
uint8_t enaddr[ETHER_ADDR_LEN];
|
||||
bus_dma_segment_t seg;
|
||||
int i, p, error, nseg;
|
||||
int i, error, nseg;
|
||||
pcireg_t pmode;
|
||||
int pmreg;
|
||||
|
||||
@ -526,8 +526,8 @@ kse_attach(device_t parent, device_t self, void *aux)
|
||||
if_attach(ifp);
|
||||
ether_ifattach(ifp, enaddr);
|
||||
|
||||
p = (sc->sc_chip == 0x8842) ? 3 : 1;
|
||||
#ifdef KSE_EVENT_COUNTERS
|
||||
int p = (sc->sc_chip == 0x8842) ? 3 : 1;
|
||||
for (i = 0; i < p; i++) {
|
||||
struct ksext *ee = &sc->sc_ext;
|
||||
sprintf(ee->evcntname[i], "%s.%d", device_xname(sc->sc_dev), i+1);
|
||||
|
Loading…
Reference in New Issue
Block a user