diff options
author | Brian Norris <computersforpeace@gmail.com> | 2012-09-24 23:40:47 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-09-29 10:57:08 -0400 |
commit | 47450b35915c45309974c74f11c2d236db1b950f (patch) | |
tree | 720eaf2e47c0b0f4c3687a0f065cd549ffd7a9d0 /drivers/mtd/nand/nand_base.c | |
parent | e5570f0c873e3be68a66b479308f21d2dc280a1c (diff) |
mtd: nand: remove unnecessary variable
We don't actually use the 'ret' variable; we set it, test it, and then it dies.
Signed-off-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/mtd/nand/nand_base.c')
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index d06a80d4ee75..d4107848ec0a 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c | |||
@@ -2916,7 +2916,6 @@ static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd, | |||
2916 | { | 2916 | { |
2917 | int i, maf_idx; | 2917 | int i, maf_idx; |
2918 | u8 id_data[8]; | 2918 | u8 id_data[8]; |
2919 | int ret; | ||
2920 | 2919 | ||
2921 | /* Select the device */ | 2920 | /* Select the device */ |
2922 | chip->select_chip(mtd, 0); | 2921 | chip->select_chip(mtd, 0); |
@@ -2963,8 +2962,7 @@ static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd, | |||
2963 | chip->onfi_version = 0; | 2962 | chip->onfi_version = 0; |
2964 | if (!type->name || !type->pagesize) { | 2963 | if (!type->name || !type->pagesize) { |
2965 | /* Check is chip is ONFI compliant */ | 2964 | /* Check is chip is ONFI compliant */ |
2966 | ret = nand_flash_detect_onfi(mtd, chip, &busw); | 2965 | if (nand_flash_detect_onfi(mtd, chip, &busw)) |
2967 | if (ret) | ||
2968 | goto ident_done; | 2966 | goto ident_done; |
2969 | } | 2967 | } |
2970 | 2968 | ||