On 01/03/2018 11:33, Liu, Yi L wrote:
> +void iommu_sva_notifier_unregister(IOMMUSVAContext *sva_ctx,
> + IOMMUSVANotifier *notifier)
> +{
> + IOMMUSVANotifier *cur, *next;
> +
> + QLIST_FOREACH_SAFE(cur, &sva_ctx->sva_notifiers, node, next) {
> + if (cur == notifier) {
> + QLIST_REMOVE(cur, node);
> + break;
> + }
> + }
> +}It's enough to just do QLIST_REMOVE(notifier, node) here. Paolo
