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

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

remoteproc: 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: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent adaedbd9
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -1180,7 +1180,6 @@ static void rproc_type_release(struct device *dev)


	rproc_delete_debug_dir(rproc);
	rproc_delete_debug_dir(rproc);


	idr_remove_all(&rproc->notifyids);
	idr_destroy(&rproc->notifyids);
	idr_destroy(&rproc->notifyids);


	if (rproc->index >= 0)
	if (rproc->index >= 0)