tests: kernel: key has wrong type in test_prevent_interruption

The test_prevent_interruption() uses a key for the irq_lock(),
but the key has incorrect data type. This commit makes the key
unsigned int according to API docs.

Fixes #34023

Signed-off-by: Jennifer Williams <jennifer.m.williams@intel.com>
This commit is contained in:
Jennifer Williams 2021-04-05 17:43:45 -07:00 committed by Anas Nashif
commit a7ea624d7e

View file

@ -32,7 +32,7 @@ static void timer_handler(struct k_timer *timer)
*/
void test_prevent_interruption(void)
{
int key;
unsigned int key;
printk("locking interrupts\n");
key = irq_lock();