diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-02-06 05:39:07 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-03-26 19:29:34 -0400 |
commit | 834247ec7e281dee839fe4a04bc1bbf0c7395172 (patch) | |
tree | c037c578ba572d9104a2341013acde044a8ca052 /drivers/mtd/devices/doc2001plus.c | |
parent | 664addc248d2fed68d013d26ff2fc796d7134259 (diff) |
mtd: remove retlen zeroing duplication
The MTD API function now zero the 'retlen' parameter before calling
the driver's method — do not do this again in drivers. This removes
duplicated '*retlen = 0' assignent from the following methods:
'mtd_point()'
'mtd_read()'
'mtd_write()'
'mtd_writev()'
'mtd_panic_write()'
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/devices/doc2001plus.c')
-rw-r--r-- | drivers/mtd/devices/doc2001plus.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/devices/doc2001plus.c b/drivers/mtd/devices/doc2001plus.c index a472bab7ef2b..4a03d869ad03 100644 --- a/drivers/mtd/devices/doc2001plus.c +++ b/drivers/mtd/devices/doc2001plus.c | |||
@@ -792,7 +792,6 @@ static int doc_write(struct mtd_info *mtd, loff_t to, size_t len, | |||
792 | printk("MTD: Error 0x%x programming at 0x%x\n", dummy, (int)to); | 792 | printk("MTD: Error 0x%x programming at 0x%x\n", dummy, (int)to); |
793 | /* Error in programming | 793 | /* Error in programming |
794 | FIXME: implement Bad Block Replacement (in nftl.c ??) */ | 794 | FIXME: implement Bad Block Replacement (in nftl.c ??) */ |
795 | *retlen = 0; | ||
796 | ret = -EIO; | 795 | ret = -EIO; |
797 | } | 796 | } |
798 | dummy = ReadDOC(docptr, Mplus_LastDataRead); | 797 | dummy = ReadDOC(docptr, Mplus_LastDataRead); |