driver: minor code clean up to pass coverity scan test

This commit is contained in:
morris
2023-06-09 10:53:39 +08:00
parent 213504238f
commit 88600bd91b
21 changed files with 45 additions and 43 deletions

View File

@@ -133,7 +133,6 @@ static esp_err_t rmt_rx_register_to_group(rmt_rx_channel_t *rx_channel, const rm
if (channel_id < 0) {
// didn't find a capable channel in the group, don't forget to release the group handle
rmt_release_group_handle(group);
group = NULL;
} else {
rx_channel->base.channel_id = channel_id;
rx_channel->base.channel_mask = channel_mask;