summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-02-28 02:03:41 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-28 04:10:13 +0100
commitadaedbd9fe5c07e7fbd5854c0cfe5ce1dac7d9bd (patch)
tree73efd6e24cf2fac1be9679b37a353dd053fc2a1a /drivers/md/dm.c
parentdrm: don't use idr_remove_all() (diff)
downloadlinux-adaedbd9fe5c07e7fbd5854c0cfe5ce1dac7d9bd.tar.xz
linux-adaedbd9fe5c07e7fbd5854c0cfe5ce1dac7d9bd.zip
dm: don't use idr_remove_all()
idr_destroy() can destroy idr by itself and idr_remove_all() is being deprecated. Drop its usage. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Alasdair Kergon <agk@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--drivers/md/dm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 314a0e2faf79..9ffa7467d270 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -318,7 +318,6 @@ static void __exit dm_exit(void)
/*
* Should be empty by this point.
*/
- idr_remove_all(&_minor_idr);
idr_destroy(&_minor_idr);
}