[PATCH] md: remove unneeded NULL checks before kfree
[safe/jmp/linux-2.6] / drivers / md / multipath.c
index 2ae2d70..2d2ca7f 100644 (file)
@@ -533,8 +533,7 @@ static int multipath_run (mddev_t *mddev)
 out_free_conf:
        if (conf->pool)
                mempool_destroy(conf->pool);
-       if (conf->multipaths)
-               kfree(conf->multipaths);
+       kfree(conf->multipaths);
        kfree(conf);
        mddev->private = NULL;
 out: