diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2013-02-28 03:02:20 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-04-05 07:56:53 -0400 |
commit | 0cca9fbf5d0a65fb536d38427f48460fda1f2e99 (patch) | |
tree | f4db96eb6e2df985610b26ba5b9f6268969dcb30 /drivers | |
parent | fb066adadd224d5e46320b3fa7a80311c09be0d9 (diff) |
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 <shc_work@mail.ru>
Acked-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 2 |
1 files changed, 0 insertions, 2 deletions
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, | |||
2823 | chip->onfi_version = 20; | 2823 | chip->onfi_version = 20; |
2824 | else if (val & (1 << 1)) | 2824 | else if (val & (1 << 1)) |
2825 | chip->onfi_version = 10; | 2825 | chip->onfi_version = 10; |
2826 | else | ||
2827 | chip->onfi_version = 0; | ||
2828 | 2826 | ||
2829 | if (!chip->onfi_version) { | 2827 | if (!chip->onfi_version) { |
2830 | pr_info("%s: unsupported ONFI version: %d\n", __func__, val); | 2828 | pr_info("%s: unsupported ONFI version: %d\n", __func__, val); |