Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 978cb38a authored by Sheng Yongjie (Sam's avatar Sheng Yongjie (Sam Committed by Kyungmin Park
Browse files

[MTD] [OneNAND] Use the u_char instead of char in oobbuf



In function onenand_verify_oob, local variable oobbuf shall be unsigned char.

In the case of a value is >= 0x80, it's unequal in comparing the value in an unsigned char and signed char.

Signed-off-by: default avatarSheng Yongjie (Sam) <samsheng@trident.com.cn>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
parent b2581be2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1217,7 +1217,7 @@ int onenand_bbt_read_oob(struct mtd_info *mtd, loff_t from,
static int onenand_verify_oob(struct mtd_info *mtd, const u_char *buf, loff_t to)
{
	struct onenand_chip *this = mtd->priv;
	char oobbuf[64];
	u_char oobbuf[64];
	int status, i;

	this->command(mtd, ONENAND_CMD_READOOB, to, mtd->oobsize);