summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorMing Lei <tom.leiming@gmail.com>2017-02-14 23:29:02 +0800
committerShaohua Li <shli@fb.com>2017-02-15 11:24:13 -0800
commited7ef732ca9f7d6f42be8df6cc7bf4ace3534af3 (patch)
tree4980a2cacdd2f2b04e3a7158f873f3fc5a515e75 /drivers/md
parent8e58e327e25c7fffc3fb79a24c76637bdda37716 (diff)
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>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/md.c3
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);