Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jan 2012 20:16:06 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r229880 - stable/7/sys/dev/msk
Message-ID:  <201201092016.q09KG6fL056974@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Mon Jan  9 20:16:06 2012
New Revision: 229880
URL: http://svn.freebsd.org/changeset/base/229880

Log:
  MFC r198999:
    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.

Modified:
  stable/7/sys/dev/msk/if_msk.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/dev/msk/if_msk.c
==============================================================================
--- stable/7/sys/dev/msk/if_msk.c	Mon Jan  9 20:14:52 2012	(r229879)
+++ stable/7/sys/dev/msk/if_msk.c	Mon Jan  9 20:16:06 2012	(r229880)
@@ -1661,8 +1661,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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201092016.q09KG6fL056974>