summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2019-07-03 23:26:27 +0300
committerVignesh Raghavendra <vigneshr@ti.com>2019-08-27 17:08:18 +0530
commitf454b43a564fab4aae77c0bbc32072201993c349 (patch)
treedb44e348b0fb1a79bf697f75d7deaf74816154d0
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff)
downloadlinux-f454b43a564fab4aae77c0bbc32072201993c349.tar.gz
linux-f454b43a564fab4aae77c0bbc32072201993c349.tar.bz2
linux-f454b43a564fab4aae77c0bbc32072201993c349.zip
mtd: chips: gen_probe: kill useless initializer in mtd_do_chip_probe()
The 'mtd' local variable is initialized but this value is never used, thus kill that initializer. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
-rw-r--r--drivers/mtd/chips/gen_probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/chips/gen_probe.c b/drivers/mtd/chips/gen_probe.c
index 839ed40625d6..e5bd3c2bc3b2 100644
--- a/drivers/mtd/chips/gen_probe.c
+++ b/drivers/mtd/chips/gen_probe.c
@@ -20,7 +20,7 @@ static int genprobe_new_chip(struct map_info *map, struct chip_probe *cp,
struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp)
{
- struct mtd_info *mtd = NULL;
+ struct mtd_info *mtd;
struct cfi_private *cfi;
/* First probe the map to see if we have CFI stuff there. */