From: Brian Norris Date: Wed, 31 Jul 2013 00:52:57 +0000 (-0700) Subject: mtd: nand: eliminate cast X-Git-Tag: next-20130822~69^2~77 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cf7585f37d38df7923d2d2a09e56e01f19993a13;p=karo-tx-linux.git mtd: nand: eliminate cast Just make 'res' an int. Signed-off-by: Brian Norris Signed-off-by: Artem Bityutskiy --- diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c index 3ff9d367a624..3f18776592da 100644 --- a/drivers/mtd/nand/nand_bbt.c +++ b/drivers/mtd/nand/nand_bbt.c @@ -1370,8 +1370,7 @@ int nand_default_bbt(struct mtd_info *mtd) int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) { struct nand_chip *this = mtd->priv; - int block; - uint8_t res; + int block, res; block = (int)(offs >> this->bbt_erase_shift); res = bbt_get_entry(this, block); @@ -1380,7 +1379,7 @@ int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) "(block %d) 0x%02x\n", (unsigned int)offs, block, res); - switch ((int)res) { + switch (res) { case BBT_BLOCK_GOOD: return 0; case BBT_BLOCK_WORN: