Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sergei Shtylyov and committed by
Vignesh Raghavendra
f454b43a 5f9e832c

+1 -1
+1 -1
drivers/mtd/chips/gen_probe.c
··· 20 20 21 21 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp) 22 22 { 23 - struct mtd_info *mtd = NULL; 23 + struct mtd_info *mtd; 24 24 struct cfi_private *cfi; 25 25 26 26 /* First probe the map to see if we have CFI stuff there. */