Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/imx Fix compile error.
details: https://anonhg.NetBSD.org/src/rev/55fd2bd148d5
branches: trunk
changeset: 456693:55fd2bd148d5
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Fri May 24 00:13:25 2019 +0000
description:
Fix compile error.
diffstat:
sys/arch/arm/imx/if_enet.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 0e3aa24aa205 -r 55fd2bd148d5 sys/arch/arm/imx/if_enet.c
--- a/sys/arch/arm/imx/if_enet.c Thu May 23 21:37:55 2019 +0000
+++ b/sys/arch/arm/imx/if_enet.c Fri May 24 00:13:25 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_enet.c,v 1.21 2019/05/23 13:10:50 msaitoh Exp $ */
+/* $NetBSD: if_enet.c,v 1.22 2019/05/24 00:13:25 msaitoh Exp $ */
/*
* Copyright (c) 2014 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_enet.c,v 1.21 2019/05/23 13:10:50 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_enet.c,v 1.22 2019/05/24 00:13:25 msaitoh Exp $");
#include "vlan.h"
@@ -174,11 +174,10 @@
enet_attach_common(device_t self, bus_space_tag_t iot,
bus_dma_tag_t dmat, bus_addr_t addr, bus_size_t size, int irq)
{
- struct enet_softc *sc;
+ struct enet_softc *sc = device_private(self);
struct ifnet *ifp;
struct mii_data * const mii = &sc->sc_mii;
- sc = device_private(self);
sc->sc_dev = self;
sc->sc_iot = iot;
sc->sc_addr = addr;
Home |
Main Index |
Thread Index |
Old Index