refactor(interrupts): remove api_interrupt_inject
api_interrupt_inject and vcpu_interrupt_inject were performing the
same function, as the next argument was never being used. So just
use vcpu_interrupt_inject.
Also remove unnecessary if statement from vcpu_interrupt_inject.
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
Change-Id: I36c5157b7961e5a85b3e485f0a309b5dddf7c21a
diff --git a/inc/hf/ffa/interrupts.h b/inc/hf/ffa/interrupts.h
index a786114..9a0f70c 100644
--- a/inc/hf/ffa/interrupts.h
+++ b/inc/hf/ffa/interrupts.h
@@ -19,8 +19,7 @@
void ffa_interrupts_handle_secure_interrupt(struct vcpu *current,
struct vcpu **next);
bool ffa_interrupts_inject_notification_pending_interrupt(
- struct vcpu_locked next_locked, struct vcpu_locked current_locked,
- struct vm_locked receiver_locked);
+ struct vcpu_locked next_locked, struct vm_locked receiver_locked);
bool ffa_interrupts_intercept_call(struct vcpu_locked current_locked,
struct vcpu_locked next_locked,