]> www.infradead.org Git - mtd-utils.git/commitdiff
nanddump: drop unused --ignoreerrors option
authorMike Frysinger <vapier@gentoo.org>
Sun, 12 Sep 2010 03:50:26 +0000 (23:50 -0400)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 12 Sep 2010 08:07:39 +0000 (11:07 +0300)
Nowhere in the nanddump code is the "ignoreerrors" variable used.  So
drop the option completely.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
nanddump.c

index 22fec5fe89180cce4b71b914c0fdbcb1e23ef4db..70b78f05e59dc7ea1dec10ffd550325a6d83ef34 100644 (file)
@@ -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;