Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/fdt Simplify list initialization
details: https://anonhg.NetBSD.org/src/rev/eaf4b00d6890
branches: trunk
changeset: 833554:eaf4b00d6890
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Jun 30 20:16:56 2018 +0000
description:
Simplify list initialization
diffstat:
sys/dev/fdt/fdt_syscon.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r df5d361050b5 -r eaf4b00d6890 sys/dev/fdt/fdt_syscon.c
--- a/sys/dev/fdt/fdt_syscon.c Sat Jun 30 18:27:10 2018 +0000
+++ b/sys/dev/fdt/fdt_syscon.c Sat Jun 30 20:16:56 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_syscon.c,v 1.2 2018/06/30 18:07:12 jmcneill Exp $ */
+/* $NetBSD: fdt_syscon.c,v 1.3 2018/06/30 20:16:56 jmcneill Exp $ */
/*-
* Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_syscon.c,v 1.2 2018/06/30 18:07:12 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_syscon.c,v 1.3 2018/06/30 20:16:56 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -47,9 +47,8 @@
LIST_ENTRY(fdtbus_syscon) sc_next;
};
-LIST_HEAD(fdtbus_syscon_h, fdtbus_syscon);
-static struct fdtbus_syscon_h fdtbus_syscons =
- LIST_HEAD_INITIALIZER(fdtbus_syscons);
+static LIST_HEAD(, fdtbus_syscon) fdtbus_syscons =
+ LIST_HEAD_INITIALIZER(fdtbus_syscons);
int
fdtbus_register_syscon(device_t dev, int phandle,
Home |
Main Index |
Thread Index |
Old Index