projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb066ad
)
mtd: nand_base: Removed unnecessary cleaning "onfi_version" variable
author
Alexander Shiyan
<
[email protected]
>
Thu, 28 Feb 2013 08:02:20 +0000
(12:02 +0400)
committer
David Woodhouse
<
[email protected]
>
Fri, 5 Apr 2013 11:56:53 +0000
(12:56 +0100)
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 <
[email protected]
>
Acked-by: Brian Norris <
[email protected]
>
Signed-off-by: Artem Bityutskiy <
[email protected]
>
Signed-off-by: David Woodhouse <
[email protected]
>
drivers/mtd/nand/nand_base.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/nand_base.c
b/drivers/mtd/nand/nand_base.c
index ad0a88f13794dffe18de1006939f38311f4043f7..f159d5f184bfbd9424f03ce49e178f91333f54b8 100644
(file)
--- 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);