[MTD] [NAND] Replace -1 with -EBADMSG in nand error correction code

Magic numerical values are just bad style.  Particularly so when
undocumented.

Signed-off-by: Jörn Engel <joern@logfs.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
Jörn Engel
2007-10-20 23:16:32 +02:00
committed by David Woodhouse
parent 1dd7fdb163
commit eb68450715
4 changed files with 6 additions and 4 deletions

View File

@ -189,7 +189,7 @@ int nand_correct_data(struct mtd_info *mtd, u_char *dat,
if(countbits(s0 | ((uint32_t)s1 << 8) | ((uint32_t)s2 <<16)) == 1)
return 1;
return -1;
return -EBADMSG;
}
EXPORT_SYMBOL(nand_correct_data);