DMA: shdma: (cosmetic) don't re-calculate a pointer
Use an existing pointer instead of retrieving it again. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
f784d9c904
commit
fa74326c44
|
@ -729,7 +729,7 @@ static int sh_dmae_probe(struct platform_device *pdev)
|
|||
goto eshdma;
|
||||
|
||||
/* platform data */
|
||||
shdev->pdata = pdev->dev.platform_data;
|
||||
shdev->pdata = pdata;
|
||||
|
||||
if (pdata->chcr_offset)
|
||||
shdev->chcr_offset = pdata->chcr_offset;
|
||||
|
|
Loading…
Reference in New Issue