Patchwork [U-Boot,1/5] nand_base: trivial: fix comment read/write comment

login
register
mail settings
Submitter Ben Gardiner
Date April 28, 2011, 9:47 p.m.
Message ID <959c3b06d030a26ec941382c1699ba8a60ac427a.1304026883.git.bengardiner@nanometrics.ca>
Download mbox | patch
Permalink /patch/93337/
State Accepted
Commit bee038e9fe2fe0fcd53e89aac32fb8948555c040
Headers show

Comments

Ben Gardiner - April 28, 2011, 9:47 p.m.
Replace an incorrect 'read' with 'write' in a comment.

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
---
 drivers/mtd/nand/nand_base.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 52f8575..1a95a91 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)