kernel: queue: MISRA C compliance.

This patch fixes few issues in queue.c. This patch also changes
the return type of k_queue_alloc_append and k_queue_alloc_prepend
from int to s32_t.

Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
This commit is contained in:
Adithya Baglody 2018-10-25 12:09:04 +05:30 committed by Anas Nashif
commit 2a78b8d86f
2 changed files with 10 additions and 10 deletions

View file

@ -1755,7 +1755,7 @@ extern void k_queue_append(struct k_queue *queue, void *data);
* @retval 0 on success
* @retval -ENOMEM if there isn't sufficient RAM in the caller's resource pool
*/
__syscall int k_queue_alloc_append(struct k_queue *queue, void *data);
__syscall s32_t k_queue_alloc_append(struct k_queue *queue, void *data);
/**
* @brief Prepend an element to a queue.
@ -1788,7 +1788,7 @@ extern void k_queue_prepend(struct k_queue *queue, void *data);
* @retval 0 on success
* @retval -ENOMEM if there isn't sufficient RAM in the caller's resource pool
*/
__syscall int k_queue_alloc_prepend(struct k_queue *queue, void *data);
__syscall s32_t k_queue_alloc_prepend(struct k_queue *queue, void *data);
/**
* @brief Inserts an element to a queue.