Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/x86 No need to write any initializer here, cast...



details:   https://anonhg.NetBSD.org/src/rev/ed26a3f2e7a0
branches:  trunk
changeset: 445873:ed26a3f2e7a0
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Nov 15 16:58:56 2018 +0000

description:
No need to write any initializer here, casted or otherwise.

(Sorry about the build breakage; thanks, kre!)

diffstat:

 sys/arch/x86/x86/efi.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 04a4675d0fe9 -r ed26a3f2e7a0 sys/arch/x86/x86/efi.c
--- a/sys/arch/x86/x86/efi.c    Thu Nov 15 14:19:23 2018 +0000
+++ b/sys/arch/x86/x86/efi.c    Thu Nov 15 16:58:56 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: efi.c,v 1.17 2018/11/15 11:20:59 kre Exp $     */
+/*     $NetBSD: efi.c,v 1.18 2018/11/15 16:58:56 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: efi.c,v 1.17 2018/11/15 11:20:59 kre Exp $");
+__KERNEL_RCSID(0, "$NetBSD: efi.c,v 1.18 2018/11/15 16:58:56 riastradh Exp $");
 
 #include <sys/kmem.h>
 #include <sys/param.h>
@@ -55,7 +55,7 @@
 bool           efi_uuideq(const struct uuid *, const struct uuid *);
 
 static bool efi_is32x64 = false;
-static paddr_t efi_systbl_pa = (paddr_t)NULL;
+static paddr_t efi_systbl_pa;
 static struct efi_systbl *efi_systbl_va = NULL;
 static struct efi_cfgtbl *efi_cfgtblhead_va = NULL;
 static struct efi_e820memmap {



Home | Main Index | Thread Index | Old Index