Skip to content

Commit

Permalink
drivers: dma: silabs: fix warning when compiling without assert
Browse files Browse the repository at this point in the history
Fix warning compilation when CONFIG_ASSERT is set to no.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
  • Loading branch information
Martinhoff-maker authored and kartben committed Feb 28, 2025
1 parent 75885e8 commit 5efaf9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/dma_silabs_ldma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5efaf9d

Please sign in to comment.