]> www.infradead.org Git - mtd-utils.git/commitdiff
nanddump: remove unused variable
authorBrian Norris <computersforpeace@gmail.com>
Mon, 27 Jun 2011 18:27:27 +0000 (11:27 -0700)
committerArtem Bityutskiy <dedekind1@gmail.com>
Wed, 29 Jun 2011 05:42:37 +0000 (08:42 +0300)
The "bb_default" bool was temporarily being used to straighten out
potential issues with the changing --bb=METHOD options and to warn
users properly. Now, it's unnecessary.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
nanddump.c

index 27b0f7a6148c1eb90b7a2fdb29331389a10dd80a..0b931db4e8d331f5114ae844e7501ee93d83d546 100644 (file)
@@ -102,7 +102,7 @@ static enum {
 static void process_options(int argc, char * const argv[])
 {
        int error = 0;
-       bool bb_default = true, oob_default = true;
+       bool oob_default = true;
 
        for (;;) {
                int option_index = 0;
@@ -149,7 +149,6 @@ static void process_options(int argc, char * const argv[])
                                                        bb_method = skipbad;
                                                else
                                                        error++;
-                                               bb_default = false;
                                                break;
                                        case 3: /* --omitoob */
                                                if (oob_default) {