Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Fix a typo, and remove an unused member.
details: https://anonhg.NetBSD.org/src/rev/28f47329217b
branches: trunk
changeset: 786760:28f47329217b
user: minoura <minoura%NetBSD.org@localhost>
date: Thu May 09 12:23:17 2013 +0000
description:
Fix a typo, and remove an unused member.
This should fix the problem that recent Qemu dies during configuring a vioif.
diffstat:
sys/dev/pci/if_vioif.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r f66ce06da5cb -r 28f47329217b sys/dev/pci/if_vioif.c
--- a/sys/dev/pci/if_vioif.c Thu May 09 11:44:36 2013 +0000
+++ b/sys/dev/pci/if_vioif.c Thu May 09 12:23:17 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vioif.c,v 1.3 2013/03/30 03:21:08 christos Exp $ */
+/* $NetBSD: if_vioif.c,v 1.4 2013/05/09 12:23:17 minoura Exp $ */
/*
* Copyright (c) 2010 Minoura Makoto.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.3 2013/03/30 03:21:08 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.4 2013/05/09 12:23:17 minoura Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -151,7 +151,6 @@
uint8_t sc_mac[ETHER_ADDR_LEN];
struct ethercom sc_ethercom;
- uint32_t sc_features;
short sc_ifflags;
/* bus_dmamem */
@@ -654,7 +653,7 @@
vioif_rx_drain(sc);
virtio_reinit_start(vsc);
- virtio_negotiate_features(vsc, sc->sc_features);
+ virtio_negotiate_features(vsc, vsc->sc_features);
virtio_start_vq_intr(vsc, &sc->sc_vq[0]);
virtio_stop_vq_intr(vsc, &sc->sc_vq[1]);
if (vsc->sc_nvqs >= 3)
Home |
Main Index |
Thread Index |
Old Index