Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adaedbd9 authored by Tejun Heo's avatar Tejun Heo Committed by Linus Torvalds
Browse files

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: default avatarTejun Heo <tj@kernel.org>
Cc: Alasdair Kergon <agk@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4d53233a
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -318,7 +318,6 @@ static void __exit dm_exit(void)
	/*
	/*
	 * Should be empty by this point.
	 * Should be empty by this point.
	 */
	 */
	idr_remove_all(&_minor_idr);
	idr_destroy(&_minor_idr);
	idr_destroy(&_minor_idr);
}
}