From e3ec4c1279fbad168e0125c86ec3fb1bd0ab699a Mon Sep 17 00:00:00 2001 From: wpaul 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 +++ sys/pci/if_dc.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c index 85002ed..3f73bcb 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; diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c index 85002ed..3f73bcb 100644 --- a/sys/pci/if_dc.c +++ b/sys/pci/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.1