Skip to content

Commit

Permalink
iommu: remove unused @ctx->lock
Browse files Browse the repository at this point in the history
This has been used in nowhere.

Signed-off-by: Minwoo Im <[email protected]>
  • Loading branch information
minwooim authored and birkelund committed Jan 6, 2025
1 parent bebd991 commit f89e95f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/iommu/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
1 change: 0 additions & 1 deletion src/iommu/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit f89e95f

Please sign in to comment.