]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3a342be39e408c3ebb07aeb8e6d57ad9f228c77e
treefcaa0e40b761b5cdd0dee64c658c6c69fa53ebc6
parentb88f6717b3789e06f015ee47df7fa7474a4369ca
pch_dma: Reduce wasting memory

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>
drivers/dma/pch_dma.c