Skip to content

Commit f6dddbb

Browse files
author
Marc Zyngier
committed
KVM: arm64: Get rid of find_reg_by_id()
This helper doesn't have a user anymore, let's get rid of it. Signed-off-by: Marc Zyngier <[email protected]>
1 parent 619064a commit f6dddbb

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

arch/arm64/kvm/sys_regs.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2577,17 +2577,6 @@ static bool index_to_params(u64 id, struct sys_reg_params *params)
25772577
}
25782578
}
25792579

2580-
const struct sys_reg_desc *find_reg_by_id(u64 id,
2581-
struct sys_reg_params *params,
2582-
const struct sys_reg_desc table[],
2583-
unsigned int num)
2584-
{
2585-
if (!index_to_params(id, params))
2586-
return NULL;
2587-
2588-
return find_reg(params, table, num);
2589-
}
2590-
25912580
const struct sys_reg_desc *get_reg_by_id(u64 id,
25922581
const struct sys_reg_desc table[],
25932582
unsigned int num)

arch/arm64/kvm/sys_regs.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,6 @@ find_reg(const struct sys_reg_params *params, const struct sys_reg_desc table[],
190190
return __inline_bsearch((void *)pval, table, num, sizeof(table[0]), match_sys_reg);
191191
}
192192

193-
const struct sys_reg_desc *find_reg_by_id(u64 id,
194-
struct sys_reg_params *params,
195-
const struct sys_reg_desc table[],
196-
unsigned int num);
197-
198193
const struct sys_reg_desc *get_reg_by_id(u64 id,
199194
const struct sys_reg_desc table[],
200195
unsigned int num);

0 commit comments

Comments
 (0)