]> git.baikalelectronics.ru Git - kernel.git/commit
metag: dma: remove dead code in dma_alloc_init()
authorJames Hogan <james.hogan@imgtec.com>
Thu, 14 Nov 2013 10:14:37 +0000 (10:14 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Mon, 25 Nov 2013 10:50:27 +0000 (10:50 +0000)
commitd7186f47edb9a22e2a2099b91bf9c432162c0594
tree93066237e17d9f3205a71d9edd72c083e9c84f7d
parent1386d2af13b0b2ba423da1adf79ceabb7ea834e9
metag: dma: remove dead code in dma_alloc_init()

Meta has 2 levels of page table so the pmd folds into the pud which
folds into the pgd. Therefore the !pmd check in dma_alloc_init() is dead
code since it essentially checks whether:
  (init_mm->pgd + 0x770) == 0

Remove the check.

Reported-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
arch/metag/kernel/dma.c