mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
change(lp_i2s): coverity: remove not necessary null pointer check
This commit is contained in:
parent
56696866ba
commit
2b2d56306b
@ -116,11 +116,9 @@ esp_err_t lp_i2s_new_channel(const lp_i2s_chan_config_t *chan_cfg, lp_i2s_chan_h
|
|||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
|
|
||||||
err0:
|
err0:
|
||||||
if (ctlr->rx_chan) {
|
vSemaphoreDeleteWithCaps(ctlr->rx_chan->semphr);
|
||||||
vSemaphoreDeleteWithCaps(ctlr->rx_chan->semphr);
|
free(ctlr->rx_chan);
|
||||||
free(ctlr->rx_chan);
|
ctlr->rx_chan = NULL;
|
||||||
ctlr->rx_chan = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
err1:
|
err1:
|
||||||
/* if the controller object has no channel, find the corresponding global object and destroy it */
|
/* if the controller object has no channel, find the corresponding global object and destroy it */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user