summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2014-05-12 19:55:16 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-16 00:19:00 +0400
commitec5e34c074793a1f80faaf75e9468dd2f39ec1dc (patch)
treeb3a9e817d1a5c39b1bbd377b23f0a6e28efa92b9
parentf10d8434201859d5ad7f51032dcd2d0c09e85ee2 (diff)
downloadlinux-ec5e34c074793a1f80faaf75e9468dd2f39ec1dc.tar.xz
goldfish_nand.c: remove length restrictions
Remove limitations on the size of a read / write request. AFAIK, there's no consequence to allowing the upper layers to specify different read / write sizes. This is needed to support running ext4 on goldfish. Bug: https://code.google.com/p/android/issues/detail?id=38561 Signed-off-by: Nick Kralevich <nnk@google.com> Signed-off-by: Jun Tian <jun.j.tian@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/goldfish/goldfish_nand.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/goldfish/goldfish_nand.c b/drivers/staging/goldfish/goldfish_nand.c
index b8e3dd28096d..b7ca553dfa29 100644
--- a/drivers/staging/goldfish/goldfish_nand.c
+++ b/drivers/staging/goldfish/goldfish_nand.c
@@ -202,8 +202,6 @@ static int goldfish_nand_read(struct mtd_info *mtd, loff_t from, size_t len,
if (from + len > mtd->size)
goto invalid_arg;
- if (len != mtd->writesize)
- goto invalid_arg;
rem = do_div(from, mtd->writesize);
if (rem)
@@ -226,8 +224,6 @@ static int goldfish_nand_write(struct mtd_info *mtd, loff_t to, size_t len,
if (to + len > mtd->size)
goto invalid_arg;
- if (len != mtd->writesize)
- goto invalid_arg;
rem = do_div(to, mtd->writesize);
if (rem)