Skip to content
Commit 7920c6a8 authored by ferar alashkar's avatar ferar alashkar Committed by Anas Nashif
Browse files

drivers: intc: stm32: clarify controlling expression



add explicit boolean type to 'if' statement controlling expression,
consolidating it with 'stm32_exti_is_pending' function return type, thus
improving code readability and maintainability, complying with required
[misra-c2012-14.4] rule which states; The controlling expression of an
if statement and the controlling expression of an iteration-statement
shall have essentially boolean type.

Found as a coding guideline violation (Rule 14.4) by static code
scanning tool.

Note: Tested on STM32L5 Nucleo-144 board (stm32l552xx).

Signed-off-by: default avatarferar alashkar <ferar.alashkar@gmail.com>
parent 7b2034aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment