kernel: MISRA C guideline compliance for rule 11.6
This patch removes the typecast (void*). This can be better handled by typecasting to the actual typdef. This fixes the misra rule of 11.6 for alert. Part of GH-10042. Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
This commit is contained in:
parent
b9248a17ac
commit
d591588ab5
1 changed files with 1 additions and 1 deletions
|
@ -3036,7 +3036,7 @@ typedef int (*k_alert_handler_t)(struct k_alert *alert);
|
|||
*/
|
||||
|
||||
#define K_ALERT_DEFAULT NULL
|
||||
#define K_ALERT_IGNORE ((void *)(-1))
|
||||
#define K_ALERT_IGNORE ((k_alert_handler_t)0xFFFFFFFF)
|
||||
|
||||
struct k_alert {
|
||||
k_alert_handler_t handler;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue