summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/hisilicon/hns3
diff options
context:
space:
mode:
authorPiotr Sroka <piotrs@cadence.com>2019-10-30 07:45:09 +0000
committerMiquel Raynal <miquel.raynal@bootlin.com>2019-10-30 09:22:13 +0100
commit777260a5c99226cfa58325b6a7c2f39bb46f5aaf (patch)
treec522318f41f3d078776ea16d92fb1c3484076a84 /drivers/net/ethernet/hisilicon/hns3
parent29d9640bb537bbe0c37ffd672ff56b73e4aa3252 (diff)
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: kbuild test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Piotr Sroka <piotrs@cadence.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3')
0 files changed, 0 insertions, 0 deletions