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 unused



details:   https://anonhg.NetBSD.org/src/rev/2d5ef14d3775
branches:  trunk
changeset: 790766:2d5ef14d3775
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 20 17:13:18 2013 +0000

description:
remove unused

diffstat:

 sys/dev/nand/nand.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r e18193c700be -r 2d5ef14d3775 sys/dev/nand/nand.c
--- a/sys/dev/nand/nand.c       Sun Oct 20 17:12:23 2013 +0000
+++ b/sys/dev/nand/nand.c       Sun Oct 20 17:13:18 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nand.c,v 1.22 2012/11/03 12:45:28 ahoka Exp $  */
+/*     $NetBSD: nand.c,v 1.23 2013/10/20 17:13:18 christos Exp $       */
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -34,7 +34,7 @@
 /* Common driver for NAND chips implementing the ONFI 2.2 specification */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nand.c,v 1.22 2012/11/03 12:45:28 ahoka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nand.c,v 1.23 2013/10/20 17:13:18 christos Exp $");
 
 #include "locators.h"
 
@@ -863,7 +863,7 @@
 {
        struct nand_softc *sc = device_private(self);
        struct nand_chip *chip = &sc->sc_chip;
-       flash_off_t blockoffset, marker;
+       flash_off_t blockoffset;
 #ifdef NAND_BBT
        flash_off_t block;
 
@@ -872,7 +872,6 @@
        nand_bbt_block_markbad(self, block);
 #endif
        blockoffset = offset & chip->nc_block_mask;
-       marker = chip->nc_badmarker_offs & ~0x01;
 
        /* check if it is already marked bad */
        if (nand_isbad(self, blockoffset))



Home | Main Index | Thread Index | Old Index