aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/doc2000.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/devices/doc2000.c')
-rw-r--r--drivers/mtd/devices/doc2000.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/mtd/devices/doc2000.c b/drivers/mtd/devices/doc2000.c
index ee4ee0b8440d..7ad7b054800c 100644
--- a/drivers/mtd/devices/doc2000.c
+++ b/drivers/mtd/devices/doc2000.c
@@ -603,8 +603,6 @@ static int doc_read(struct mtd_info *mtd, loff_t from, size_t len,
603 size_t left = len; 603 size_t left = len;
604 604
605 mutex_lock(&this->lock); 605 mutex_lock(&this->lock);
606
607 *retlen = 0;
608 while (left) { 606 while (left) {
609 len = left; 607 len = left;
610 608
@@ -745,8 +743,6 @@ static int doc_write(struct mtd_info *mtd, loff_t to, size_t len,
745 int status; 743 int status;
746 744
747 mutex_lock(&this->lock); 745 mutex_lock(&this->lock);
748
749 *retlen = 0;
750 while (left) { 746 while (left) {
751 len = left; 747 len = left;
752 748