All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] nanddump: drop unused --ignoreerrors option
@ 2010-09-12  3:50 Mike Frysinger
  2010-09-12  3:50 ` [PATCH 2/2] nanddump: add --nobad to read bad blocks Mike Frysinger
  2010-09-12  8:09 ` [PATCH 1/2] nanddump: drop unused --ignoreerrors option Artem Bityutskiy
  0 siblings, 2 replies; 12+ messages in thread
From: Mike Frysinger @ 2010-09-12  3:50 UTC (permalink / raw)
  To: linux-mtd

Nowhere in the nanddump code is the "ignoreerrors" variable used.  So
drop the option completely.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 nanddump.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/nanddump.c b/nanddump.c
index 22fec5f..70b78f0 100644
--- a/nanddump.c
+++ b/nanddump.c
@@ -48,7 +48,6 @@ static void display_help (void)
 "-a         --forcebinary        Force printing of binary data to tty\n"
 "-c         --canonicalprint     Print canonical Hex+ASCII dump\n"
 "-f file    --file=file          Dump to file\n"
-"-i         --ignoreerrors       Ignore errors\n"
 "-l length  --length=length      Length\n"
 "-n         --noecc              Read without error correction\n"
 "-o         --omitoob            Omit oob data\n"
@@ -75,7 +74,6 @@ static void display_version (void)
 
 // Option variables
 
-static bool		ignoreerrors = false;	// ignore errors
 static bool		pretty_print = false;	// print nice
 static bool		noecc = false;		// don't error correct
 static bool		omitoob = false;	// omit oob data
@@ -94,14 +92,13 @@ static void process_options (int argc, char * const argv[])
 
 	for (;;) {
 		int option_index = 0;
-		static const char *short_options = "bs:f:il:opqnca";
+		static const char *short_options = "bs:f:l:opqnca";
 		static const struct option long_options[] = {
 			{"help", no_argument, 0, 0},
 			{"version", no_argument, 0, 0},
 			{"forcebinary", no_argument, 0, 'a'},
 			{"canonicalprint", no_argument, 0, 'c'},
 			{"file", required_argument, 0, 'f'},
-			{"ignoreerrors", no_argument, 0, 'i'},
 			{"prettyprint", no_argument, 0, 'p'},
 			{"omitoob", no_argument, 0, 'o'},
 			{"omitbad", no_argument, 0, 'b'},
@@ -141,9 +138,6 @@ static void process_options (int argc, char * const argv[])
 					exit(EXIT_FAILURE);
 				}
 				break;
-			case 'i':
-				ignoreerrors = true;
-				break;
 			case 'l':
 				length = strtol(optarg, NULL, 0);
 				break;
-- 
1.7.2

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-09-18 17:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-12  3:50 [PATCH 1/2] nanddump: drop unused --ignoreerrors option Mike Frysinger
2010-09-12  3:50 ` [PATCH 2/2] nanddump: add --nobad to read bad blocks Mike Frysinger
2010-09-12  8:11   ` Artem Bityutskiy
2010-09-13  5:50   ` Jon Povey
2010-09-13  6:22     ` Wolfram Sang
2010-09-13  6:24       ` Artem Bityutskiy
2010-09-13  7:15         ` [PATCH] nanddump: Rename --nobad to --noskipbad Wolfram Sang
2010-09-17  6:20           ` Artem Bityutskiy
2010-09-17  7:54             ` Wolfram Sang
2010-09-17  8:24               ` Artem Bityutskiy
2010-09-18 17:16           ` Artem Bityutskiy
2010-09-12  8:09 ` [PATCH 1/2] nanddump: drop unused --ignoreerrors option Artem Bityutskiy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.