drivers: dma: remove unnecessary null check

the dev pointer is already dereferenced before this function is
called, so this check does not make any sense.

Signed-off-by: Jacob Siverskog <jacob@teenage.engineering>
This commit is contained in:
Jacob Siverskog 2023-07-10 09:02:35 +02:00 committed by Fabio Baltieri
parent 5e15e8cb48
commit 6f2e73a32f

View file

@ -341,7 +341,7 @@ static int dma_xec_configure(const struct device *dev, uint32_t channel,
uint32_t ctrl, mstart, mend, dstart, unit_size;
int ret;
if (!dev || !config || (channel >= (uint32_t)devcfg->dma_channels)) {
if (!config || (channel >= (uint32_t)devcfg->dma_channels)) {
return -EINVAL;
}