Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/nand Avoid a 'may be used uninitialized' warning.
details: https://anonhg.NetBSD.org/src/rev/205a49e85977
branches: trunk
changeset: 782379:205a49e85977
user: riz <riz%NetBSD.org@localhost>
date: Wed Oct 31 21:30:27 2012 +0000
description:
Avoid a 'may be used uninitialized' warning.
diffstat:
sys/dev/nand/nand_samsung.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c4db0e20fca4 -r 205a49e85977 sys/dev/nand/nand_samsung.c
--- a/sys/dev/nand/nand_samsung.c Wed Oct 31 20:51:25 2012 +0000
+++ b/sys/dev/nand/nand_samsung.c Wed Oct 31 21:30:27 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nand_samsung.c,v 1.3 2012/10/31 20:51:25 ahoka Exp $ */
+/* $NetBSD: nand_samsung.c,v 1.4 2012/10/31 21:30:27 riz Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nand_samsung.c,v 1.3 2012/10/31 20:51:25 ahoka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nand_samsung.c,v 1.4 2012/10/31 21:30:27 riz Exp $");
#include "nand.h"
#include "onfi.h"
@@ -148,7 +148,7 @@
break;
}
- uint64_t planesize;
+ uint64_t planesize = 0;
switch ((params3 & NAND_SAMSUNG_PLANESIZEMASK) >> 4) {
case 0x0:
planesize = 64 * 1024 * 1024;
Home |
Main Index |
Thread Index |
Old Index