mirror of https://gitee.com/openkylin/linux.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 <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>
This commit is contained in:
parent
fb066adadd
commit
0cca9fbf5d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue