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

[PATCH] Dead code in mtd/maps/pci.c

This fixes coverity bug #12. The first two gotos in the function still
have the initial value for mtd set. And the third goto just triggers for
!mtd

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Acked-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Eric Sesterhenn and committed by
Linus Torvalds
edcbce21 2d2dce0e

-3
-3
drivers/mtd/maps/pci.c
··· 334 334 return 0; 335 335 336 336 release: 337 - if (mtd) 338 - map_destroy(mtd); 339 - 340 337 if (map) { 341 338 map->exit(dev, map); 342 339 kfree(map);