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:
Adithya Baglody 2018-10-05 14:46:04 +05:30 committed by Anas Nashif
commit d591588ab5

View file

@ -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;