summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJehan Bing <jehan@orb.com>2009-08-05 17:41:23 -0700
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-08-12 10:37:47 +0300
commited777541152b791e0055cd718126b576c90e5116 (patch)
tree3d137f1397e001cf28e111c08300a92e074f6526
parentae2eeb41ad2b3209f90166b49fefedb40edc9432 (diff)
nandwrite: allow writing the OOB when using the standard input
Signed-off-by: Jehan Bing <jehan@orb.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--nandwrite.c6
1 files changed, 0 insertions, 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);
/*