Module Name:    src
Committed By:   joerg
Date:           Thu Jun 16 16:20:28 UTC 2011

Modified Files:
        src/sys/dev: mm.c

Log Message:
Explicitly initialise vaddr_t and let dead store elimination remove it
later.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/mm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/mm.c
diff -u src/sys/dev/mm.c:1.14 src/sys/dev/mm.c:1.15
--- src/sys/dev/mm.c:1.14	Sun Jun 12 03:35:51 2011
+++ src/sys/dev/mm.c	Thu Jun 16 16:20:28 2011
@@ -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) {

Reply via email to