diff options
author | Ming Lei <tom.leiming@gmail.com> | 2017-02-14 16:29:02 +0100 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2017-02-15 20:24:13 +0100 |
commit | ed7ef732ca9f7d6f42be8df6cc7bf4ace3534af3 (patch) | |
tree | 4980a2cacdd2f2b04e3a7158f873f3fc5a515e75 | |
parent | md/raid1: use bio_clone_bioset_partial() in case of write behind (diff) | |
download | linux-ed7ef732ca9f7d6f42be8df6cc7bf4ace3534af3.tar.xz linux-ed7ef732ca9f7d6f42be8df6cc7bf4ace3534af3.zip |
md: remove unnecessary check on mddev
mddev is never NULL and neither is ->bio_set, so
remove the check.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Shaohua Li <shli@fb.com>
-rw-r--r-- | drivers/md/md.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 137a1fe124e8..0e408bc67904 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -193,9 +193,6 @@ EXPORT_SYMBOL_GPL(bio_alloc_mddev); struct bio *bio_clone_mddev(struct bio *bio, gfp_t gfp_mask, struct mddev *mddev) { - if (!mddev || !mddev->bio_set) - return bio_clone(bio, gfp_mask); - return bio_clone_bioset(bio, gfp_mask, mddev->bio_set); } EXPORT_SYMBOL_GPL(bio_clone_mddev); |