Module Name:    src
Committed By:   msaitoh
Date:           Mon Jun  3 15:49:04 UTC 2019

Modified Files:
        src/sys/dev/pci: if_sk.c

Log Message:
 KNF. No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/sys/dev/pci/if_sk.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_sk.c
diff -u src/sys/dev/pci/if_sk.c:1.99 src/sys/dev/pci/if_sk.c:1.100
--- src/sys/dev/pci/if_sk.c:1.99	Mon Jun  3 15:39:35 2019
+++ src/sys/dev/pci/if_sk.c	Mon Jun  3 15:49:04 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_sk.c,v 1.99 2019/06/03 15:39:35 msaitoh Exp $	*/
+/*	$NetBSD: if_sk.c,v 1.100 2019/06/03 15:49:04 msaitoh Exp $	*/
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -115,7 +115,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_sk.c,v 1.99 2019/06/03 15:39:35 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_sk.c,v 1.100 2019/06/03 15:49:04 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -154,9 +154,9 @@ __KERNEL_RCSID(0, "$NetBSD: if_sk.c,v 1.
 #include <dev/pci/if_skvar.h>
 
 int skc_probe(device_t, cfdata_t, void *);
-void skc_attach(device_t, device_t, void *aux);
+void skc_attach(device_t, device_t, void *);
 int sk_probe(device_t, cfdata_t, void *);
-void sk_attach(device_t, device_t, void *aux);
+void sk_attach(device_t, device_t, void *);
 int skcprint(void *, const char *);
 int sk_intr(void *);
 void sk_intr_bcom(struct sk_if_softc *);
@@ -1162,7 +1162,8 @@ skc_probe(device_t parent, cfdata_t matc
 /*
  * Force the GEnesis into reset, then bring it out of reset.
  */
-void sk_reset(struct sk_softc *sc)
+void
+sk_reset(struct sk_softc *sc)
 {
 	DPRINTFN(2, ("sk_reset\n"));
 
@@ -1399,7 +1400,8 @@ sk_attach(device_t parent, device_t self
 	ifp = &sc_if->sk_ethercom.ec_if;
 	/* Try to allocate memory for jumbo buffers. */
 	if (sk_alloc_jumbo_mem(sc_if)) {
-		aprint_error("%s: jumbo buffer allocation failed\n", ifp->if_xname);
+		aprint_error("%s: jumbo buffer allocation failed\n",
+		    ifp->if_xname);
 		goto fail;
 	}
 	sc_if->sk_ethercom.ec_capabilities = ETHERCAP_VLAN_MTU
@@ -1648,8 +1650,8 @@ skc_attach(device_t parent, device_t sel
 	}
 
 	intrstr = pci_intr_string(pc, ih, intrbuf, sizeof(intrbuf));
-	sc->sk_intrhand = pci_intr_establish_xname(pc, ih, IPL_NET, sk_intr, sc,
-	    device_xname(sc->sk_dev));
+	sc->sk_intrhand = pci_intr_establish_xname(pc, ih, IPL_NET, sk_intr,
+	    sc, device_xname(sc->sk_dev));
 	if (sc->sk_intrhand == NULL) {
 		aprint_error(": couldn't establish interrupt");
 		if (intrstr != NULL)
@@ -1854,7 +1856,8 @@ skc_attach(device_t parent, device_t sel
 	    sk_sysctl_handler, 0, (void *)sc,
 	    0, CTL_HW, sk_root_num, sk_nodenum, CTL_CREATE,
 	    CTL_EOL)) != 0) {
-		aprint_normal_dev(sc->sk_dev, "couldn't create int_mod sysctl node\n");
+		aprint_normal_dev(sc->sk_dev,
+		    "couldn't create int_mod sysctl node\n");
 		goto fail_1;
 	}
 
@@ -2617,7 +2620,8 @@ sk_unreset_yukon(struct sk_if_softc *sc_
 	    sc->sk_rev >= SK_YUKON_LITE_REV_A3) {
 		/* Take PHY out of reset. */
 		sk_win_write_4(sc, SK_GPIO,
-			(sk_win_read_4(sc, SK_GPIO) | SK_GPIO_DIR9) & ~SK_GPIO_DAT9);
+		    (sk_win_read_4(sc, SK_GPIO) | SK_GPIO_DIR9)
+		    & ~SK_GPIO_DAT9);
 	}
 
 	/* GMAC and GPHY Reset */
@@ -2697,7 +2701,7 @@ sk_init_yukon(struct sk_if_softc *sc_if)
 	/* transmit parameter register */
 	DPRINTFN(6, ("sk_init_yukon: 8\n"));
 	SK_YU_WRITE_2(sc_if, YUKON_TPR, YU_TPR_JAM_LEN(0x3) |
-		      YU_TPR_JAM_IPG(0xb) | YU_TPR_JAM2DATA_IPG(0x1a) );
+		      YU_TPR_JAM_IPG(0xb) | YU_TPR_JAM2DATA_IPG(0x1a));
 
 	/* serial mode register */
 	DPRINTFN(6, ("sk_init_yukon: 9\n"));
@@ -3045,7 +3049,7 @@ void
 sk_dump_txdesc(struct sk_tx_desc *desc, int idx)
 {
 #define DESC_PRINT(X)					\
-	if (X)					\
+	if (X)						\
 		printf("txdesc[%d]." #X "=%#x\n",	\
 		       idx, X);
 

Reply via email to