From: Alexander Shiyan Date: Thu, 28 Feb 2013 08:02:20 +0000 (+0400) Subject: mtd: nand_base: Removed unnecessary cleaning "onfi_version" variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0cca9fbf5d0a65fb536d38427f48460fda1f2e99;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mtd: nand_base: Removed unnecessary cleaning "onfi_version" variable Variable "onfi_version" is already set to zero before nand_flash_detect_onfi() call, so additional cleaning is not necessary. Signed-off-by: Alexander Shiyan Acked-by: Brian Norris Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index ad0a88f13794..f159d5f184bf 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -2823,8 +2823,6 @@ static int nand_flash_detect_onfi(struct mtd_info *mtd, struct nand_chip *chip, chip->onfi_version = 20; else if (val & (1 << 1)) chip->onfi_version = 10; - else - chip->onfi_version = 0; if (!chip->onfi_version) { pr_info("%s: unsupported ONFI version: %d\n", __func__, val);