]> err.no Git - linux-2.6/blobdiff - drivers/md/raid10.c
Merge upstream 2.6.13-rc3 into ieee80211 branch of netdev-2.6.
[linux-2.6] / drivers / md / raid10.c
index 8476515bfdc79e293ee079a6fea11e15884dcc39..62ebb1bc72be24cc32ecc775c5bd71603d44e5c6 100644 (file)
@@ -700,8 +700,7 @@ static int make_request(request_queue_t *q, struct bio * bio)
                return 0;
        }
 
-       if (md_write_start(mddev, bio) == 0)
-               return 0;
+       md_write_start(mddev, bio);
 
        /*
         * Register the new request and wait if the reconstruction
@@ -1738,8 +1737,7 @@ static int run(mddev_t *mddev)
 out_free_conf:
        if (conf->r10bio_pool)
                mempool_destroy(conf->r10bio_pool);
-       if (conf->mirrors)
-               kfree(conf->mirrors);
+       kfree(conf->mirrors);
        kfree(conf);
        mddev->private = NULL;
 out:
@@ -1755,8 +1753,7 @@ static int stop(mddev_t *mddev)
        blk_sync_queue(mddev->queue); /* the unplug fn references 'conf'*/
        if (conf->r10bio_pool)
                mempool_destroy(conf->r10bio_pool);
-       if (conf->mirrors)
-               kfree(conf->mirrors);
+       kfree(conf->mirrors);
        kfree(conf);
        mddev->private = NULL;
        return 0;