Skip to content
Commit a04a2ca7 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Anas Nashif
Browse files

k_fifo/K_lifo macros: avoid unnecessary casts



The fifo/lifo API is implemented on top of the queue API with macros
that blindly force a cast to struct k_queue. Providing a reference to
the _queue member from the k_fifo structure is much cleaner as it let
the compiler perform pointer type checking. Generated code is identical.

Signed-off-by: default avatarNicolas Pitre <npitre@baylibre.com>
parent 09ba365c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment