rpmsg: don't use idr_remove_all()
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / rpmsg / virtio_rpmsg_bus.c
index d85446021ddb36a1ce206fef33a1a81cde0464ab..aaa6840ee05b9d79befe6e379d654fc71c6008f5 100644 (file)
@@ -1036,7 +1036,6 @@ static void rpmsg_remove(struct virtio_device *vdev)
        if (vrp->ns_ept)
                __rpmsg_destroy_ept(vrp, vrp->ns_ept);
 
-       idr_remove_all(&vrp->endpoints);
        idr_destroy(&vrp->endpoints);
 
        vdev->config->del_vqs(vrp->vdev);