1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-15 15:06:42 +00:00

Make this compile with DEVICE_POLLING set.

smc_poll had the wrong prototype. It returns 0 as it does not check
anything but submits a taskqueue.

Reviewed by:	benno
MFC after:	2 weeks
This commit is contained in:
Nick Hibma 2017-09-28 19:33:36 +00:00
parent cf060942db
commit eb847626a3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=324088

View File

@ -782,7 +782,7 @@ smc_task_rx(void *context, int pending)
}
#ifdef DEVICE_POLLING
static void
static int
smc_poll(struct ifnet *ifp, enum poll_cmd cmd, int count)
{
struct smc_softc *sc;
@ -792,12 +792,13 @@ smc_poll(struct ifnet *ifp, enum poll_cmd cmd, int count)
SMC_LOCK(sc);
if ((ifp->if_drv_flags & IFF_DRV_RUNNING) == 0) {
SMC_UNLOCK(sc);
return;
return (0);
}
SMC_UNLOCK(sc);
if (cmd == POLL_AND_CHECK_STATUS)
taskqueue_enqueue(sc->smc_tq, &sc->smc_intr);
return (0);
}
#endif