fix(static checks): clang-format failed with previous change
The change [1] introduce a static check failure with clang-format.
[1] https://review.trustedfirmware.org/c/hafnium/hafnium/+/42116
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: Ie3fe5b3ccc5451e8146eb55819b85844a4e08d90
diff --git a/src/hf_ipi.c b/src/hf_ipi.c
index c630026..017077b 100644
--- a/src/hf_ipi.c
+++ b/src/hf_ipi.c
@@ -244,7 +244,7 @@
{
enum ipi_sri_action ipi_sri_action = IPI_SRI_ACTION_INIT;
bool ret = true;
- struct vcpu* current = target_vcpu_locked.vcpu;
+ struct vcpu *current = target_vcpu_locked.vcpu;
ret = hf_ipi_handle_list_element(target_vcpu_locked, &ipi_sri_action);
@@ -252,14 +252,17 @@
* Clear the pending ipi list, handling the ipi for the remaining
* target vCPUs.
*/
- for (struct vcpu* target_vcpu = hf_ipi_get_pending_target_vcpu(current);
+ for (struct vcpu *target_vcpu = hf_ipi_get_pending_target_vcpu(current);
target_vcpu != NULL;
target_vcpu = hf_ipi_get_pending_target_vcpu(target_vcpu)) {
- if (target_vcpu != current)
+ if (target_vcpu != current) {
target_vcpu_locked = vcpu_lock(target_vcpu);
+ }
+
hf_ipi_handle_list_element(target_vcpu_locked, &ipi_sri_action);
- if (target_vcpu != current)
+ if (target_vcpu != current) {
vcpu_unlock(&target_vcpu_locked);
+ }
}
return ret;