]> www.infradead.org Git - mtd-utils.git/commitdiff
nandwrite: allow writing the OOB when using the standard input
authorJehan Bing <jehan@orb.com>
Thu, 6 Aug 2009 00:41:23 +0000 (17:41 -0700)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 12 Aug 2009 07:37:47 +0000 (10:37 +0300)
Signed-off-by: Jehan Bing <jehan@orb.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
nandwrite.c

index 7bb57cda4b3c5570f307242bc9e50ae7809716c8..b77edd6f7f6c24d672003f6f74dd1902cf53c530 100644 (file)
@@ -392,12 +392,6 @@ int main(int argc, char * const argv[])
                goto restoreoob;
        }
 
-       /* For now, don't allow writing oob when reading from standard input. */
-       if (ifd == STDIN_FILENO && writeoob) {
-               fprintf(stderr, "Can't write oob when reading from standard input.\n");
-               goto closeall;
-       }
-
        pagelen = meminfo.writesize + ((writeoob) ? meminfo.oobsize : 0);
 
        /*