md: Make bio_alloc_mddev use bio_alloc_bioset
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>
Mon, 14 Jan 2019 13:31:56 +0000 (06:31 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 14 Jan 2019 13:31:56 +0000 (06:31 -0700)
commit6251691a92170d3a781aaf7b5f2c31b50d669809
tree9b09f6724ff0ca0dd8b87698bde414946bdd4511
parent5bf859081f6a7575a3f7509d7a70d0a9baa88ce3
md: Make bio_alloc_mddev use bio_alloc_bioset

bio_alloc_bioset returns a bio pointer or NULL, so we can avoid storing
the returned data into a new variable.

Acked-by: Guoqing Jiang <gqjiang@suse.com>
Acked-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/md.c