Skip to content

Commit 5efaf9d

Browse files
Martinhoff-makerkartben
authored andcommitted
drivers: dma: silabs: fix warning when compiling without assert
Fix warning compilation when CONFIG_ASSERT is set to no. Signed-off-by: Martin Hoff <[email protected]>
1 parent 75885e8 commit 5efaf9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/dma_silabs_ldma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ bool dma_silabs_chan_filter(const struct device *dev, int channel, void *filter_
491491
void dma_silabs_chan_release(const struct device *dev, uint32_t channel)
492492
{
493493
ARG_UNUSED(dev);
494-
Ecode_t err = DMADRV_FreeChannel(channel);
494+
Ecode_t __maybe_unused err = DMADRV_FreeChannel(channel);
495495

496496
__ASSERT_NO_MSG(err == ECODE_EMDRV_DMADRV_OK);
497497
}

0 commit comments

Comments
 (0)