aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-06-27 11:27:27 -0700
committerArtem Bityutskiy <dedekind1@gmail.com>2011-06-29 08:42:37 +0300
commitea5af28f1531e478126ffe4a5dc9ac7d1de7acd3 (patch)
treed76964195f7fc10c6cc20367f72452694c5d2f4c
parentfdb28b9abed0f1a573168dba565f2d57e322158f (diff)
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 <computersforpeace@gmail.com> Acked-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
-rw-r--r--nanddump.c3
1 files changed, 1 insertions, 2 deletions
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) {