diff options
Diffstat (limited to 'drivers/mtd/devices/spear_smi.c')
-rw-r--r-- | drivers/mtd/devices/spear_smi.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/mtd/devices/spear_smi.c b/drivers/mtd/devices/spear_smi.c index 2cdbcc65b39f..f45dd37b771e 100644 --- a/drivers/mtd/devices/spear_smi.c +++ b/drivers/mtd/devices/spear_smi.c | |||
@@ -563,9 +563,6 @@ static int spear_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, | |||
563 | u32 ctrlreg1, val; | 563 | u32 ctrlreg1, val; |
564 | int ret; | 564 | int ret; |
565 | 565 | ||
566 | if (!len) | ||
567 | return 0; | ||
568 | |||
569 | if (!flash || !dev) | 566 | if (!flash || !dev) |
570 | return -ENODEV; | 567 | return -ENODEV; |
571 | 568 | ||
@@ -662,9 +659,6 @@ static int spear_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, | |||
662 | if (!flash || !dev) | 659 | if (!flash || !dev) |
663 | return -ENODEV; | 660 | return -ENODEV; |
664 | 661 | ||
665 | if (!len) | ||
666 | return 0; | ||
667 | |||
668 | if (flash->bank > dev->num_flashes - 1) { | 662 | if (flash->bank > dev->num_flashes - 1) { |
669 | dev_err(&dev->pdev->dev, "Invalid Bank Num"); | 663 | dev_err(&dev->pdev->dev, "Invalid Bank Num"); |
670 | return -EINVAL; | 664 | return -EINVAL; |