diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2008-02-04 23:44:47 -0800 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-02-07 10:34:36 +0000 |
commit | 53fb84a0695ffeeeadf8ae92db28cbccf5325531 (patch) | |
tree | d573cd02754704e0674821d759e39e9c7708eead /drivers/mtd/devices/doc2000.c | |
parent | d5476689afd48e71395602698409e9f48cbba413 (diff) | |
download | op-kernel-dev-53fb84a0695ffeeeadf8ae92db28cbccf5325531.zip op-kernel-dev-53fb84a0695ffeeeadf8ae92db28cbccf5325531.tar.gz |
[MTD] [DOC200x] eccbuf is statically defined and always evaluate to true
Signed-off-by: Samuel Tardieu <sam@rfc1149.net>
Acked-by: Joern Engel <joern@logfs.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/devices/doc2000.c')
-rw-r--r-- | drivers/mtd/devices/doc2000.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/devices/doc2000.c b/drivers/mtd/devices/doc2000.c index c73e96b..e9ce241 100644 --- a/drivers/mtd/devices/doc2000.c +++ b/drivers/mtd/devices/doc2000.c @@ -632,7 +632,7 @@ static int doc_read(struct mtd_info *mtd, loff_t from, size_t len, len = ((from | 0x1ff) + 1) - from; /* The ECC will not be calculated correctly if less than 512 is read */ - if (len != 0x200 && eccbuf) + if (len != 0x200) printk(KERN_WARNING "ECC needs a full sector read (adr: %lx size %lx)\n", (long) from, (long) len); @@ -896,7 +896,7 @@ static int doc_write(struct mtd_info *mtd, loff_t to, size_t len, /* Let the caller know we completed it */ *retlen += len; - if (eccbuf) { + { unsigned char x[8]; size_t dummy; int ret; |