From 88edd9c6a09cc867ea377c7ad968e6a17595acf5 Mon Sep 17 00:00:00 2001 From: Maheedhar Bollapalli Date: Thu, 25 Apr 2024 11:21:27 +0530 Subject: [PATCH] fix(bl31): add missing curly braces This corrects the MISRA violation C2012-15.6: The body of an iteration-statement or a selection-statement shall be a compound-statement. Enclosed statement body within the curly braces. Change-Id: I7c1474a2aa5c940433b88be75c88b4ffa5833b57 Signed-off-by: Nithin G Signed-off-by: Maheedhar Bollapalli --- bl31/interrupt_mgmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bl31/interrupt_mgmt.c b/bl31/interrupt_mgmt.c index a2b2c0685..1a1cbc4e7 100644 --- a/bl31/interrupt_mgmt.c +++ b/bl31/interrupt_mgmt.c @@ -219,9 +219,9 @@ int32_t register_interrupt_type_handler(uint32_t type, ******************************************************************************/ interrupt_type_handler_t get_interrupt_type_handler(uint32_t type) { - if (validate_interrupt_type(type) != 0) + if (validate_interrupt_type(type) != 0) { return NULL; - + } return intr_type_descs[type].handler; }