mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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.
This commit is contained in:
parent
faee270315
commit
d9700bb5b5
2 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue