Skip to content

Commit

Permalink
DMA: shdma: (cosmetic) don't re-calculate a pointer
Browse files Browse the repository at this point in the history
Use an existing pointer instead of retrieving it again.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
  • Loading branch information
lyakh authored and Vinod Koul committed Jul 5, 2013
1 parent f784d9c commit fa74326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/sh/shdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fa74326

Please sign in to comment.