[PATCH] kfree cleanup: drivers/mtd
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / mtd / maps / ipaq-flash.c
index 712401810841bf1f1d5358b12108ddffac8affbf..70b0e0b82c34f8e7384b2fb0bae3ea51503dc10d 100644 (file)
@@ -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);
        }
 }