From f89e95f218613225a5e930fa9aa635aa7975b27e Mon Sep 17 00:00:00 2001 From: Minwoo Im Date: Tue, 24 Dec 2024 09:26:57 +0900 Subject: [PATCH] iommu: remove unused @ctx->lock This has been used in nowhere. Signed-off-by: Minwoo Im --- src/iommu/context.c | 2 -- src/iommu/context.h | 1 - 2 files changed, 3 deletions(-) diff --git a/src/iommu/context.c b/src/iommu/context.c index 3796434..da852f8 100644 --- a/src/iommu/context.c +++ b/src/iommu/context.c @@ -81,8 +81,6 @@ void iommu_ctx_init(struct iommu_ctx *ctx) ctx->iova_ranges[0].start = IOVA_MIN; ctx->iova_ranges[0].last = IOVA_MAX_39BITS - 1; - pthread_mutex_init(&ctx->lock, NULL); - skiplist_init(&ctx->map.list); pthread_rwlock_init(&ctx->map.lock, NULL); } diff --git a/src/iommu/context.h b/src/iommu/context.h index 57c9181..a3b56c7 100644 --- a/src/iommu/context.h +++ b/src/iommu/context.h @@ -48,7 +48,6 @@ struct iommu_ctx { struct iova_map map; struct iommu_ctx_ops ops; - pthread_mutex_t lock; int nranges; struct iommu_iova_range *iova_ranges; };