]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Do not need to check for dma_window == NULL
authorNishanth Aravamudan <nacc@us.ibm.com>
Tue, 26 Oct 2010 17:35:15 +0000 (17:35 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 9 Dec 2010 04:17:50 +0000 (15:17 +1100)
commitf118e031275b76ba048b6dfe4c1bba14d81f8382
tree6efc431b2a3cc64dd7d53e077a314d4a68d6892e
parente12d9955eed22d70f7df1cc68cba69857472292f
powerpc/pseries: Do not need to check for dma_window == NULL

The block in pci_dma_dev_setup_pSeriesLP for dma_window == NULL can be
removed because we will only teminate the loop if we had already allocated
a iommu table for that node or we found a window.  While there may be
no window for the device, the intresting part is if we are reusing a
table or creating it for the first device under it.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/iommu.c