aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dc/if_dc.c
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>2001-12-19 18:13:44 +0000
committerBill Paul <wpaul@FreeBSD.org>2001-12-19 18:13:44 +0000
commitd9700bb5b541bc37c47ddcef9921e0e0e2fb2662 (patch)
treecc31cb9f04df69ac50472d8d88596c48780e7744 /sys/dev/dc/if_dc.c
parentfaee2703159ca3003b5914205d1db9471e1b111e (diff)
downloadsrc-d9700bb5b541bc37c47ddcef9921e0e0e2fb2662.tar.gz
src-d9700bb5b541bc37c47ddcef9921e0e0e2fb2662.zip
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.
Notes
Notes: svn path=/head/; revision=88213
Diffstat (limited to 'sys/dev/dc/if_dc.c')
-rw-r--r--sys/dev/dc/if_dc.c3
1 files changed, 3 insertions, 0 deletions
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;