]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commited4eadd9cce127a50c22c9c165341c148678d912
tree9b09f6724ff0ca0dd8b87698bde414946bdd4511
parent1c8e16230f8e929d1bae31ea8cb0222d262f79a4
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