Commit a15abcc961426c9e560bec26785e05b68154c474

Authored by Tejun Heo
Committed by Linus Torvalds
1 parent 045dc40d9e

rpmsg: 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: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

drivers/rpmsg/virtio_rpmsg_bus.c
... ... @@ -1036,7 +1036,6 @@
1036 1036 if (vrp->ns_ept)
1037 1037 __rpmsg_destroy_ept(vrp, vrp->ns_ept);
1038 1038  
1039   - idr_remove_all(&vrp->endpoints);
1040 1039 idr_destroy(&vrp->endpoints);
1041 1040  
1042 1041 vdev->config->del_vqs(vrp->vdev);