Patchwork mtd: nand: fix typo in comment

login
register
mail settings
Submitter Wolfram Sang
Date Dec. 21, 2011, 10:01 p.m.
Message ID <1324504880-13312-1-git-send-email-w.sang@pengutronix.de>
Download mbox | patch
Permalink /patch/132744/
State Accepted
Commit 12183a20a8baf009bf570ab3db45a27fd6b1fd03
Headers show

Comments

Wolfram Sang - Dec. 21, 2011, 10:01 p.m.
Funny one :) "Heck" fits somehow, too, but I am sure it was meant to be "Check".

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
---
 drivers/mtd/nand/nand_base.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Brian Norris - Dec. 22, 2011, 12:45 a.m.
On Wed, Dec 21, 2011 at 2:01 PM, Wolfram Sang <w.sang@pengutronix.de> wrote:
> Funny one :) "Heck" fits somehow, too, but I am sure it was meant to be "Check".

I agree, now that you mention it. I'd say this was a regression caused
by commit ace4dfee and perpetuated by me :)

Brian
Artem Bityutskiy - Jan. 9, 2012, 9 p.m.
On Wed, 2011-12-21 at 23:01 +0100, Wolfram Sang wrote:
> Funny one :) "Heck" fits somehow, too, but I am sure it was meant to be "Check".
> 
> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>

Pushed to l2-mtd-2.6.git, thanks!

Artem.

Patch

diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 3ed9c5e..376472b 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -2588,7 +2588,7 @@  int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr,
 	instr->state = MTD_ERASING;
 
 	while (len) {
-		/* Heck if we have a bad block, we do not erase bad blocks! */
+		/* Check if we have a bad block, we do not erase bad blocks! */
 		if (nand_block_checkbad(mtd, ((loff_t) page) <<
 					chip->page_shift, 0, allowbbt)) {
 			pr_warn("%s: attempt to erase a bad block at page 0x%08x\n",