projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mtd: move zero length verification to MTD API functions
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
drivers
/
mtd
/
devices
/
lart.c
diff --git
a/drivers/mtd/devices/lart.c
b/drivers/mtd/devices/lart.c
index 6fb8dba7695973195d8b08347528e48f3e15818c..82bd00af5cc3841ba6cd44ef51024b5792ba09b5 100644
(file)
--- a/
drivers/mtd/devices/lart.c
+++ b/
drivers/mtd/devices/lart.c
@@
-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;