mood.c:175:3: warning: Value stored to 'ret' is never read
ret = get_item_score(item, &afsi, &afhi, path, &item_score,
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This time scan-build found a real bug.
list_for_each_entry(item, &m->score_list, mood_item_node) {
ret = get_item_score(item, &afsi, &afhi, path, &item_score,
&score_arg_sum);
+ if (ret == 0)
+ continue;
score += item_score;
}
if (score_arg_sum)