1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-06 18:29:47 +00:00

Take a step towards removing if_watchdog/if_timer. Don't explicitly set

if_watchdog/if_timer to NULL/0 when initializing an ifnet.  if_alloc()
sets those members to NULL/0 already.

(Missed this driver in the earlier commit.)
This commit is contained in:
John Baldwin 2009-11-06 20:07:16 +00:00
parent ff08021657
commit f802264db1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198999

View File

@ -1518,8 +1518,6 @@ msk_attach(device_t dev)
ifp->if_capenable = ifp->if_capabilities;
ifp->if_ioctl = msk_ioctl;
ifp->if_start = msk_start;
ifp->if_timer = 0;
ifp->if_watchdog = NULL;
ifp->if_init = msk_init;
IFQ_SET_MAXLEN(&ifp->if_snd, MSK_TX_RING_CNT - 1);
ifp->if_snd.ifq_drv_maxlen = MSK_TX_RING_CNT - 1;