From: Sergei Shtylyov Date: Wed, 3 Jul 2019 20:26:27 +0000 (+0300) Subject: mtd: chips: gen_probe: kill useless initializer in mtd_do_chip_probe() X-Git-Tag: v5.4-rc1~87^2~11^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f454b43a564fab4aae77c0bbc32072201993c349;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Vignesh Raghavendra --- diff --git a/drivers/mtd/chips/gen_probe.c b/drivers/mtd/chips/gen_probe.c index 839ed40..e5bd3c2 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. */