From: Ben Gardiner Date: Tue, 24 May 2011 14:18:34 +0000 (-0400) Subject: nand_base: trivial: fix comment read/write comment X-Git-Tag: v2011.09-rc1~306 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bee038e9fe2fe0fcd53e89aac32fb8948555c040;p=u-boot nand_base: trivial: fix comment read/write comment Replace an incorrect 'read' with 'write' in a comment. Signed-off-by: Ben Gardiner Acked-by: Detlev Zundel Signed-off-by: Scott Wood --- diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 52f8575aac..1a95a91318 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -1950,7 +1950,7 @@ static int nand_write(struct mtd_info *mtd, loff_t to, size_t len, struct nand_chip *chip = mtd->priv; int ret; - /* Do not allow reads past end of device */ + /* Do not allow writes past end of device */ if ((to + len) > mtd->size) return -EINVAL; if (!len)