From 2c79b69f8f7319e52c7db84c5db725a62c276e41 Mon Sep 17 00:00:00 2001 From: Gaurav Aggarwal Date: Thu, 18 Apr 2024 18:59:25 +0000 Subject: [PATCH] Code review suggestions Signed-off-by: Gaurav Aggarwal --- MISRA.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MISRA.md b/MISRA.md index 8f33f1f2c..4355ec678 100644 --- a/MISRA.md +++ b/MISRA.md @@ -23,9 +23,8 @@ MISRA C:2012 Dir 4.7: If a function returns error information, then that error information shall be tested. _Ref 4.7.1_ - - The return value of `taskENTER_CRITICAL_FROM_ISR` is the interrupt mask of the - port. Error information won't be returned by this function and no need to perform - a check on the return value. + - `taskENTER_CRITICAL_FROM_ISR` returns the interrupt mask and not any error + information. Therefore, there is no need test the return value. #### Rule 8.4