[PATCH] kfree cleanup: drivers/mtd
This is the drivers/mtd part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in drivers/mtd/. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Cc: David Woodhouse <dwmw2@infradead.org> Acked-by: Joern Engel <joern@wohnheim.fh-wedel.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
c9475cb0c3
commit
fa671646f6
@@ -431,8 +431,7 @@ static void __exit ipaq_mtd_cleanup(void)
|
||||
if (my_sub_mtd[i])
|
||||
map_destroy(my_sub_mtd[i]);
|
||||
}
|
||||
if (parsed_parts)
|
||||
kfree(parsed_parts);
|
||||
kfree(parsed_parts);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user