From: Brian Norris Date: Mon, 27 Jun 2011 18:27:27 +0000 (-0700) Subject: nanddump: remove unused variable X-Git-Tag: v1.4.7~50 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ea5af28f1531e478126ffe4a5dc9ac7d1de7acd3;p=mtd-utils.git nanddump: remove unused variable 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 Acked-by: Mike Frysinger Signed-off-by: Artem Bityutskiy --- diff --git a/nanddump.c b/nanddump.c index 27b0f7a..0b931db 100644 --- a/nanddump.c +++ b/nanddump.c @@ -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) {