drivers: flash stm32 qspi driver dma callback for positive statuses

Like other stm32 drivers, especially the stm32 flash ospi,
the DMA callback accepts a null or positive status.
It returns an error in case of negative.
BTW it also sets variable as unused, like stm32 flash ospi does.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2023-05-25 08:50:00 +02:00 committed by Fabio Baltieri
commit dced627c28

View file

@ -556,7 +556,9 @@ static void qspi_dma_callback(const struct device *dev, void *arg,
{
DMA_HandleTypeDef *hdma = arg;
if (status != 0) {
ARG_UNUSED(dev);
if (status < 0) {
LOG_ERR("DMA callback error with channel %d.", channel);
}