remove warnings in slist

This commit is contained in:
lixianjing 2019-05-15 18:50:56 -07:00
parent f0fc6c230e
commit 1a0f43010a

View File

@ -75,7 +75,7 @@ void* slist_find(slist_t* slist, void* ctx) {
ret_t slist_remove(slist_t* slist, void* ctx) {
slist_node_t* iter = NULL;
slist_node_t* prev = NULL;
return_value_if_fail(slist != NULL && slist->first != NULL, RET_BAD_PARAMS);
return_value_if_fail(slist != NULL, RET_BAD_PARAMS);
iter = slist->first;
prev = slist->first;