diff options
author | Ming Lei <tom.leiming@gmail.com> | 2017-02-14 18:29:02 +0300 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2017-02-15 22:24:13 +0300 |
commit | ed7ef732ca9f7d6f42be8df6cc7bf4ace3534af3 (patch) | |
tree | 4980a2cacdd2f2b04e3a7158f873f3fc5a515e75 | |
parent | 8e58e327e25c7fffc3fb79a24c76637bdda37716 (diff) | |
download | linux-ed7ef732ca9f7d6f42be8df6cc7bf4ace3534af3.tar.xz |
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); |