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
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ static int dma_xec_configure(const struct device *dev, uint32_t channel,
|
||||||
uint32_t ctrl, mstart, mend, dstart, unit_size;
|
uint32_t ctrl, mstart, mend, dstart, unit_size;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (!dev || !config || (channel >= (uint32_t)devcfg->dma_channels)) {
|
if (!config || (channel >= (uint32_t)devcfg->dma_channels)) {
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue