Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Explicitly initialise vaddr_t and let dead store eli...
details: https://anonhg.NetBSD.org/src/rev/a351f3440ae8
branches: trunk
changeset: 766133:a351f3440ae8
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Jun 16 16:20:28 2011 +0000
description:
Explicitly initialise vaddr_t and let dead store elimination remove it
later.
diffstat:
sys/dev/mm.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 96d2f8cb1a28 -r a351f3440ae8 sys/dev/mm.c
--- a/sys/dev/mm.c Thu Jun 16 15:33:24 2011 +0000
+++ b/sys/dev/mm.c Thu Jun 16 16:20:28 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mm.c,v 1.14 2011/06/12 03:35:51 rmind Exp $ */
+/* $NetBSD: mm.c,v 1.15 2011/06/16 16:20:28 joerg Exp $ */
/*-
* Copyright (c) 2002, 2008, 2010 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mm.c,v 1.14 2011/06/12 03:35:51 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mm.c,v 1.15 2011/06/16 16:20:28 joerg Exp $");
#include "opt_compat_netbsd.h"
@@ -168,6 +168,7 @@
/* Is physical address directly mapped? Return VA. */
have_direct = mm_md_direct_mapped_phys(paddr, &vaddr);
#else
+ vaddr = 0;
have_direct = false;
#endif
if (!have_direct) {
Home |
Main Index |
Thread Index |
Old Index