Skip to content

Commit de31cf4

Browse files
zhijianli88lijinxia
authored andcommitted
HV: remove unused API lookp_entry_by_id()
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
1 parent 0e49f85 commit de31cf4

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

hypervisor/arch/x86/assign.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,6 @@ _lookup_entry_by_id(uint32_t id)
6868
return NULL;
6969
}
7070

71-
static inline struct ptdev_remapping_info *
72-
lookp_entry_by_id(uint32_t id)
73-
{
74-
struct ptdev_remapping_info *entry;
75-
76-
spinlock_obtain(&ptdev_lock);
77-
entry = _lookup_entry_by_id(id);
78-
spinlock_release(&ptdev_lock);
79-
return entry;
80-
}
81-
8271
/* require ptdev_lock protect */
8372
static inline struct ptdev_remapping_info *
8473
_lookup_entry_by_vmsi(struct vm *vm, uint16_t vbdf, int32_t index)

0 commit comments

Comments
 (0)