Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Simplify & white space fix. No functional change.
details: https://anonhg.NetBSD.org/src/rev/c68ebc1b87ab
branches: trunk
changeset: 320047:c68ebc1b87ab
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Jun 21 09:09:50 2018 +0000
description:
Simplify & white space fix. No functional change.
diffstat:
sys/dev/pci/if_msk.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diffs (55 lines):
diff -r 9478c5ecfc74 -r c68ebc1b87ab sys/dev/pci/if_msk.c
--- a/sys/dev/pci/if_msk.c Wed Jun 20 21:53:15 2018 +0000
+++ b/sys/dev/pci/if_msk.c Thu Jun 21 09:09:50 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_msk.c,v 1.65 2018/06/14 09:29:55 msaitoh Exp $ */
+/* $NetBSD: if_msk.c,v 1.66 2018/06/21 09:09:50 msaitoh Exp $ */
/* $OpenBSD: if_msk.c,v 1.65 2008/09/10 14:01:22 blambert Exp $ */
/*
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.65 2018/06/14 09:29:55 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.66 2018/06/21 09:09:50 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -443,8 +443,7 @@
struct sk_txmap_entry *entry;
int i, nexti;
- memset(sc_if->sk_rdata->sk_tx_ring, 0,
- sizeof(struct msk_tx_desc) * MSK_TX_RING_CNT);
+ memset(rd->sk_tx_ring, 0, sizeof(struct msk_tx_desc) * MSK_TX_RING_CNT);
SIMPLEQ_INIT(&sc_if->sk_txmap_head);
for (i = 0; i < MSK_TX_RING_CNT; i++) {
@@ -2304,7 +2303,7 @@
s = splnet();
/* Cancel pending I/O and free all RX/TX buffers. */
- msk_stop(ifp,0);
+ msk_stop(ifp, 0);
/* Configure I2C registers */
@@ -2353,7 +2352,7 @@
if (msk_init_rx_ring(sc_if) == ENOBUFS) {
aprint_error_dev(sc_if->sk_dev, "initialization failed: no "
"memory for rx buffers\n");
- msk_stop(ifp,0);
+ msk_stop(ifp, 0);
splx(s);
return ENOBUFS;
}
@@ -2361,7 +2360,7 @@
if (msk_init_tx_ring(sc_if) == ENOBUFS) {
aprint_error_dev(sc_if->sk_dev, "initialization failed: no "
"memory for tx buffers\n");
- msk_stop(ifp,0);
+ msk_stop(ifp, 0);
splx(s);
return ENOBUFS;
}
Home |
Main Index |
Thread Index |
Old Index