1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/cb_mux/cb_mux.c: fix cpp.check unitialized variable

This commit is contained in:
Francisco Molina 2019-11-21 08:58:06 +01:00
parent 97dda76e7a
commit 2c9abf0832

View File

@ -41,7 +41,7 @@ cb_mux_t *cb_mux_find_cbid(cb_mux_t *head, cb_mux_cbid_t cbid_val)
cb_mux_t *cb_mux_find_low(cb_mux_t *head)
{
cb_mux_t *entry;
cb_mux_t *entry = NULL;
cb_mux_t *entry_low = NULL;
cb_mux_cbid_t id = (cb_mux_cbid_t)(-1);
@ -60,7 +60,7 @@ cb_mux_t *cb_mux_find_low(cb_mux_t *head)
cb_mux_t *cb_mux_find_high(cb_mux_t *head)
{
cb_mux_t *entry;
cb_mux_t *entry = NULL;
cb_mux_t *entry_high = NULL;
cb_mux_cbid_t id = 0;
@ -81,7 +81,7 @@ cb_mux_cbid_t cb_mux_find_free_id(cb_mux_t *head)
{
uint32_t free;
cb_mux_cbid_t block;
cb_mux_t *entry;
cb_mux_t *entry = NULL;
uint8_t num;
/* Search for free IDs in blocks of 32 IDs */
@ -116,7 +116,7 @@ cb_mux_cbid_t cb_mux_find_free_id(cb_mux_t *head)
void cb_mux_iter(cb_mux_t *head, cb_mux_iter_t func, void *arg)
{
cb_mux_t *entry;
cb_mux_t *entry = NULL;
LL_FOREACH(head, entry) {
func(entry, arg);