Skip to content

Commit

Permalink
mtd: nand_base: Removed unnecessary cleaning "onfi_version" variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Shiyan authored and David Woodhouse committed Apr 5, 2013
1 parent fb066ad commit 0cca9fb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/mtd/nand/nand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0cca9fb

Please sign in to comment.