pch_dma: Reduce wasting memory
authorTomoya MORINAGA <tomoya-linux@dsn.lapis-semi.com>
Wed, 12 Oct 2011 00:38:35 +0000 (09:38 +0900)
committerVinod Koul <vinod.koul@linux.intel.com>
Wed, 12 Oct 2011 05:21:24 +0000 (10:51 +0530)
nr_channels is defined in "struct pch_dma".
and struct pch_dma_chan is defined in "struct pch_dma".
So, "sizeof(struct pch_dma_chan) * nr_channels" is unnecessary.

Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.lapis-semi.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>

No differences found