driver: fix issue found by coverity scan

This commit is contained in:
morris
2022-03-14 22:49:18 +08:00
parent 38090a0248
commit de662b987e
6 changed files with 23 additions and 30 deletions
+3
View File
@@ -370,6 +370,9 @@ static void SPI_SLAVE_ISR_ATTR spi_intr(void *arg)
//Grab next transaction
r = xQueueReceiveFromISR(host->trans_queue, &trans, &do_yield);
if (r) {
// sanity check
assert(trans);
//enable the interrupt again if there is packet to send
esp_intr_enable(host->intr);