From: James Hogan Date: Thu, 14 Nov 2013 10:14:37 +0000 (+0000) Subject: metag: dma: remove dead code in dma_alloc_init() X-Git-Tag: v3.14-rc1~182^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdf8d75818e3cd30746d38f5fbcdb3745fd267a3;p=pandora-kernel.git 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 Signed-off-by: James Hogan --- Reading git-diff-tree failed