Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci cosmetic



details:   https://anonhg.NetBSD.org/src/rev/49e17eb34640
branches:  trunk
changeset: 350241:49e17eb34640
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Sun Jan 08 06:23:29 2017 +0000

description:
cosmetic

diffstat:

 sys/dev/pci/if_iwm.c |  18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diffs (60 lines):

diff -r 4417889ef0a0 -r 49e17eb34640 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c      Sun Jan 08 05:20:51 2017 +0000
+++ b/sys/dev/pci/if_iwm.c      Sun Jan 08 06:23:29 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_iwm.c,v 1.46 2017/01/04 03:05:24 nonaka Exp $       */
+/*     $NetBSD: if_iwm.c,v 1.47 2017/01/08 06:23:29 nonaka Exp $       */
 /*     OpenBSD: if_iwm.c,v 1.147 2016/11/17 14:12:33 stsp Exp  */
 #define IEEE80211_NO_HT
 /*
@@ -107,7 +107,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.46 2017/01/04 03:05:24 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.47 2017/01/08 06:23:29 nonaka Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -4315,7 +4315,7 @@
        seg = data->map->dm_segs;
        for (i = 0; i < data->map->dm_nsegs; i++, seg++) {
                desc->tbs[i+2].lo = htole32(seg->ds_addr);
-               desc->tbs[i+2].hi_n_len = \
+               desc->tbs[i+2].hi_n_len =
                    htole16(iwm_get_dma_hi_addr(seg->ds_addr))
                    | ((seg->ds_len) << 4);
        }
@@ -6368,8 +6368,6 @@
                        ifp->if_timer = 1;
                }
        }
-
-       return;
 }
 
 static void
@@ -7637,7 +7635,7 @@
 void
 iwm_radiotap_attach(struct iwm_softc *sc)
 {
-       struct ifnet *ifp = sc->sc_ic.ic_ifp;
+       struct ifnet *ifp = IC2IFP(&sc->sc_ic);
 
        bpf_attach2(ifp, DLT_IEEE802_11_RADIO,
            sizeof (struct ieee80211_frame) + IEEE80211_RADIOTAP_HDRLEN,
@@ -7654,10 +7652,10 @@
 
 #if 0
 static void
-iwm_init_task(void *arg1)
-{
-       struct iwm_softc *sc = arg1;
-       struct ifnet *ifp = &sc->sc_ic.ic_if;
+iwm_init_task(void *arg)
+{
+       struct iwm_softc *sc = arg;
+       struct ifnet *ifp = IC2IFP(&sc->sc_ic);
        int s;
 
        rw_enter_write(&sc->ioctl_rwl);



Home | Main Index | Thread Index | Old Index