diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-11-02 23:39:23 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-11-02 23:39:23 +0000 |
commit | f0374ae6b815e64d1c3c1f8e2fa1073149e1ab2c (patch) | |
tree | 19b0974ee629d0801f2eb66dff0430c7e87fa7ef /sys/dev/pci | |
parent | b05c30474070dd92e65b5ca659abca64e044db17 (diff) |
comments like "schedule timeout" before going timeout_add are dumb. learn
to read the code.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_vic.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/pci/if_vic.c b/sys/dev/pci/if_vic.c index ef14dd28a0f..b94f0ac9111 100644 --- a/sys/dev/pci/if_vic.c +++ b/sys/dev/pci/if_vic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vic.c,v 1.29 2006/11/02 23:35:16 dlg Exp $ */ +/* $OpenBSD: if_vic.c,v 1.30 2006/11/02 23:39:22 dlg Exp $ */ /* * Copyright (c) 2006 Reyk Floeter <reyk@openbsd.org> @@ -401,12 +401,10 @@ vic_attach(struct device *parent, struct device *self, void *aux) IFCAP_CSUM_UDPv4; #endif - /* Initialise pseudo media types */ ifmedia_init(&sc->sc_media, 0, vic_media_change, vic_media_status); ifmedia_add(&sc->sc_media, IFM_ETHER | IFM_AUTO, 0, NULL); ifmedia_set(&sc->sc_media, IFM_ETHER | IFM_AUTO); - /* Attach the device structures */ if_attach(ifp); ether_ifattach(ifp); @@ -1256,10 +1254,8 @@ vic_tick(void *arg) { struct vic_softc *sc = (struct vic_softc *)arg; - /* Update link state (if changed) */ vic_link_state(sc); - /* Re-schedule another timeout. */ timeout_add(&sc->sc_tick, hz); } |