* [PATCH] nandwrite: Remove redundant 'autoplace' check
@ 2010-09-24 9:22 Shinya Kuribayashi
2010-09-25 10:57 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Shinya Kuribayashi @ 2010-09-24 9:22 UTC (permalink / raw)
To: linux-mtd
We're already in 'if (autoplace) { }' block at ths moment.
Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
---
Along with Mike's nandwrite patches, I'd like to toss out a trivial
one, too ;-)
nandwrite.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/nandwrite.c b/nandwrite.c
index 8fe8875..9eb2004 100644
--- a/nandwrite.c
+++ b/nandwrite.c
@@ -331,7 +331,7 @@ int main(int argc, char * const argv[])
}
// autoplace ECC ?
- if (autoplace && (old_oobinfo.useecc != MTD_NANDECC_AUTOPLACE)) {
+ if (old_oobinfo.useecc != MTD_NANDECC_AUTOPLACE) {
if (ioctl (fd, MEMSETOOBSEL, &autoplace_oobinfo) != 0) {
perror ("MEMSETOOBSEL");
--
1.7.2.3
--
Shinya Kuribayashi
Renesas Electronics
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] nandwrite: Remove redundant 'autoplace' check
2010-09-24 9:22 [PATCH] nandwrite: Remove redundant 'autoplace' check Shinya Kuribayashi
@ 2010-09-25 10:57 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2010-09-25 10:57 UTC (permalink / raw)
To: Shinya Kuribayashi; +Cc: linux-mtd
On Fri, 2010-09-24 at 18:22 +0900, Shinya Kuribayashi wrote:
> We're already in 'if (autoplace) { }' block at ths moment.
>
> Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
> ---
Pushed, thanks!
--
Best Regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-25 10:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-24 9:22 [PATCH] nandwrite: Remove redundant 'autoplace' check Shinya Kuribayashi
2010-09-25 10:57 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).