driver: minor code clean up to pass coverity scan test

This commit is contained in:
morris
2023-06-10 16:21:12 +08:00
parent 213504238f
commit 88600bd91b
21 changed files with 45 additions and 43 deletions
-1
View File
@@ -156,7 +156,6 @@ static esp_err_t sdm_register_to_group(sdm_channel_t *chan)
portEXIT_CRITICAL(&group->spinlock);
if (chan_id < 0) {
sdm_release_group_handle(group);
group = NULL;
} else {
chan->group = group;
chan->chan_id = chan_id;