Re: [PATCH] mtd: rawnand: remove unecessary checking if dmac is NULL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2019-10-30 at 07:45:09 UTC, Piotr Sroka wrote:
> 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@xxxxxxxxx>
> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> 
> Signed-off-by: Piotr Sroka <piotrs@xxxxxxxxxxx>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux