From: Rickard Strandqvist Date: Thu, 29 May 2014 23:11:58 +0000 (+0200) Subject: metag: hugetlbpage: Remove null pointer checks that could never happen X-Git-Tag: cleanup-for-v3.18~40^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bc613befaec184b59bf3405e8d06fafdc209484;p=pandora-kernel.git metag: hugetlbpage: Remove null pointer checks that could never happen There are inconsistent NULL checks in hugetlb_get_unmapped_area_existing(). The last conditional block in the loop checks vma, but vma is dereferenced after that. Due to the checks above however (bearing in mind after_huge is either 0 or 1) vma is guaranteed not to be NULL here, so remove that part of the check. Signed-off-by: Rickard Strandqvist [james.hogan@imgtec.com: remove brackets and expand commit message] Signed-off-by: James Hogan --- Reading git-diff-tree failed