Skip to content
Commit 777260a5 authored by Piotr Sroka's avatar Piotr Sroka Committed by Miquel Raynal
Browse files

mtd: rawnand: remove unecessary checking if dmac is NULL



Remove unecessary checking if dmac is NULL.

If Cadence nand controller driver uses DMA engine then cdns_ctrl->dmac
cannot be NULL. It is verified during driver initialization.
If Cadence nand controller driver does not use DMA engine then
CPU IO read/write are executed instead of slave DMA transfer.
In that case cdns_ctrl->dmac is not used at all.

Reported-by: default avatarkbuild test robot <lkp@intel.com>
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarPiotr Sroka <piotrs@cadence.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent 29d9640b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment