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:
parent
5e15e8cb48
commit
6f2e73a32f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue