From ed777541152b791e0055cd718126b576c90e5116 Mon Sep 17 00:00:00 2001 From: Jehan Bing Date: Wed, 5 Aug 2009 17:41:23 -0700 Subject: nandwrite: allow writing the OOB when using the standard input Signed-off-by: Jehan Bing Signed-off-by: Artem Bityutskiy --- nandwrite.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/nandwrite.c b/nandwrite.c index 7bb57cd..b77edd6 100644 --- a/nandwrite.c +++ b/nandwrite.c @@ -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); /* -- cgit v1.2.3