aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index f140d499602a..3d121cbc2fde 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -990,15 +990,9 @@ struct mapped_device *dm_get_md(dev_t dev)
990 return md; 990 return md;
991} 991}
992 992
993void *dm_get_mdptr(dev_t dev) 993void *dm_get_mdptr(struct mapped_device *md)
994{ 994{
995 struct mapped_device *md; 995 return md->interface_ptr;
996 void *mdptr = NULL;
997
998 md = dm_find_md(dev);
999 if (md)
1000 mdptr = md->interface_ptr;
1001 return mdptr;
1002} 996}
1003 997
1004void dm_set_mdptr(struct mapped_device *md, void *ptr) 998void dm_set_mdptr(struct mapped_device *md, void *ptr)