drivers: dma: silabs: fix warning when compiling without assert

Fix warning compilation when CONFIG_ASSERT is set to no.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
This commit is contained in:
Martin Hoff 2025-02-28 11:38:47 +01:00 committed by Benjamin Cabé
commit 5efaf9d8c1

View file

@ -491,7 +491,7 @@ bool dma_silabs_chan_filter(const struct device *dev, int channel, void *filter_
void dma_silabs_chan_release(const struct device *dev, uint32_t channel)
{
ARG_UNUSED(dev);
Ecode_t err = DMADRV_FreeChannel(channel);
Ecode_t __maybe_unused err = DMADRV_FreeChannel(channel);
__ASSERT_NO_MSG(err == ECODE_EMDRV_DMADRV_OK);
}