mtd: nand: fix a typo in a commentary
Signed-off-by: Jason Liu <r64343@freescale.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
c93ff6bf16
commit
775adc3d44
1 changed files with 1 additions and 1 deletions
|
@ -2377,7 +2377,7 @@ static int nand_do_write_oob(struct mtd_info *mtd, loff_t to,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Do not allow reads past end of device */
|
/* Do not allow write past end of device */
|
||||||
if (unlikely(to >= mtd->size ||
|
if (unlikely(to >= mtd->size ||
|
||||||
ops->ooboffs + ops->ooblen >
|
ops->ooboffs + ops->ooblen >
|
||||||
((mtd->size >> chip->page_shift) -
|
((mtd->size >> chip->page_shift) -
|
||||||
|
|
Loading…
Add table
Reference in a new issue