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:
parent
75885e81de
commit
5efaf9d8c1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue