commit | a04a2ca76cdc441f6510033b26ce6fd7fafcb1e1 | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <npitre@baylibre.com> | Mon May 20 23:02:39 2019 -0400 |
committer | Anas Nashif <anas.nashif@intel.com> | Mon Jun 03 21:11:42 2019 -0400 |
tree | acb5ed20d7e85e7d0ab7d75aa30144ec0d5c36e4 | |
parent | 09ba365c0bfb21fead20cdce432dae85f23103f6 [diff] |
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: Nicolas Pitre <npitre@baylibre.com>