Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/nand remove DIAGNOSTIC ifdef in preparation of a KAS...
details: https://anonhg.NetBSD.org/src/rev/f54f6ae25623
branches: trunk
changeset: 790798:f54f6ae25623
user: christos <christos%NetBSD.org@localhost>
date: Mon Oct 21 15:13:09 2013 +0000
description:
remove DIAGNOSTIC ifdef in preparation of a KASSERT that consumes its
arguments
diffstat:
sys/dev/nand/nand_bbt.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (38 lines):
diff -r 0ec31938850e -r f54f6ae25623 sys/dev/nand/nand_bbt.c
--- a/sys/dev/nand/nand_bbt.c Mon Oct 21 14:57:56 2013 +0000
+++ b/sys/dev/nand/nand_bbt.c Mon Oct 21 15:13:09 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nand_bbt.c,v 1.4 2011/05/01 13:20:28 rmind Exp $ */
+/* $NetBSD: nand_bbt.c,v 1.5 2013/10/21 15:13:09 christos Exp $ */
/*-
* Copyright (c) 2011 Department of Software Engineering,
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nand_bbt.c,v 1.4 2011/05/01 13:20:28 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nand_bbt.c,v 1.5 2013/10/21 15:13:09 christos Exp $");
#include <sys/param.h>
#include <sys/kmem.h>
@@ -201,9 +201,7 @@
nand_bbt_block_mark(device_t self, flash_off_t block, uint8_t marker)
{
struct nand_softc *sc = device_private(self);
-#ifdef DIAGNOSTIC
struct nand_chip *chip = &sc->sc_chip;
-#endif
struct nand_bbt *bbt = &sc->sc_bbt;
uint8_t clean;
@@ -221,9 +219,7 @@
nand_bbt_block_isbad(device_t self, flash_off_t block)
{
struct nand_softc *sc = device_private(self);
-#ifdef DIAGNOSTIC
struct nand_chip *chip = &sc->sc_chip;
-#endif
struct nand_bbt *bbt = &sc->sc_bbt;
uint8_t byte, marker;
bool result;
Home |
Main Index |
Thread Index |
Old Index