]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/devices/lart.c
Merge branch 'x86/cleanups' into x86/apic
[karo-tx-linux.git] / drivers / mtd / devices / lart.c
index c9ae60112a90806f45d14d13a3d59186ff43253b..82bd00af5cc3841ba6cd44ef51024b5792ba09b5 100644 (file)
@@ -437,9 +437,6 @@ static int flash_read (struct mtd_info *mtd,loff_t from,size_t len,size_t *retle
    printk (KERN_DEBUG "%s(from = 0x%.8x, len = %d)\n", __func__, (__u32)from, len);
 #endif
 
-   /* sanity checks */
-   if (!len) return (0);
-
    /* we always read len bytes */
    *retlen = len;
 
@@ -518,8 +515,6 @@ static int flash_write (struct mtd_info *mtd,loff_t to,size_t len,size_t *retlen
    printk (KERN_DEBUG "%s(to = 0x%.8x, len = %d)\n", __func__, (__u32)to, len);
 #endif
 
-   *retlen = 0;
-
    /* sanity checks */
    if (!len) return (0);