Commit 6f2e73a3 authored by Jacob Siverskog's avatar Jacob Siverskog Committed by Fabio Baltieri
Browse files

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: default avatarJacob Siverskog <jacob@teenage.engineering>
parent 5e15e8cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}