From d9700bb5b541bc37c47ddcef9921e0e0e2fb2662 Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Wed, 19 Dec 2001 18:13:44 +0000 Subject: Fix compiler warning in dc_intr(): if the only code that does a "goto" to a label is inside an #ifdef block, then the label should *also* be inside an #ifdef block. Hide the "done:" label which is only used if DEVICE_POLLING is enabled under #ifdef DEVICE_POLLING. --- sys/dev/dc/if_dc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/dev/dc/if_dc.c') diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c index 85002edb559a..3f73bcb9a2c7 100644 --- a/sys/dev/dc/if_dc.c +++ b/sys/dev/dc/if_dc.c @@ -2933,7 +2933,10 @@ static void dc_intr(arg) if (ifp->if_snd.ifq_head != NULL) dc_start(ifp); +#ifdef DEVICE_POLLING done: +#endif /* DEVICE_POLLING */ + DC_UNLOCK(sc); return; -- cgit v1.2.3