summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_sis.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-01-07 23:52:41 +0000
committerphk <phk@FreeBSD.org>2005-01-07 23:52:41 +0000
commitcd49c1d16c9338d46fcb40754a30779ffc3e129a (patch)
tree6c4dcecea5f9b80523c1bca75a91d0e3e32bb34c /sys/pci/if_sis.c
parenta04d8dc73a03436967105f4c8390f06ccc3e9f36 (diff)
downloadFreeBSD-src-cd49c1d16c9338d46fcb40754a30779ffc3e129a.zip
FreeBSD-src-cd49c1d16c9338d46fcb40754a30779ffc3e129a.tar.gz
Fix compilation of DEVICE_POLLING code.
Diffstat (limited to 'sys/pci/if_sis.c')
-rw-r--r--sys/pci/if_sis.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c
index 307ab2d..3deff3c 100644
--- a/sys/pci/if_sis.c
+++ b/sys/pci/if_sis.c
@@ -1641,12 +1641,12 @@ sis_intr(void *arg)
SIS_LOCK(sc);
#ifdef DEVICE_POLLING
- if (ifp->if_flags & IFF_POLLING)
- goto done;
- if ((ifp->if_capenable & IFCAP_POLLING) &&
- ether_poll_register(sis_poll, ifp)) { /* ok, disable interrupts */
+ if ((ifp->if_flags & IFF_POLLING) ||
+ ((ifp->if_capenable & IFCAP_POLLING) &&
+ ether_poll_register(sis_poll, ifp))) { /* ok, disable interrupts */
CSR_WRITE_4(sc, SIS_IER, 0);
- goto done;
+ SIS_UNLOCK(sc);
+ return;
}
#endif /* DEVICE_POLLING */
OpenPOWER on IntegriCloud