lkml.org 
[lkml]   [2014]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] arch: metag: mm: hugetlbpage.c: Fix to remove null pointer checks that could never happen
On 30/05/14 00:11, Rickard Strandqvist wrote:
> Removal of null pointer checks that could never happen
>
> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>

Applied, thanks
James

> ---
> arch/metag/mm/hugetlbpage.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/metag/mm/hugetlbpage.c b/arch/metag/mm/hugetlbpage.c
> index 0424315..e89c843 100644
> --- a/arch/metag/mm/hugetlbpage.c
> +++ b/arch/metag/mm/hugetlbpage.c
> @@ -178,7 +178,7 @@ new_search:
> mm->context.part_huge = 0;
> return addr;
> }
> - if (vma && (vma->vm_flags & MAP_HUGETLB)) {
> + if ((vma->vm_flags & MAP_HUGETLB)) {
> /* space after a huge vma in 2nd level page table? */
> if (vma->vm_end & HUGEPT_MASK) {
> after_huge = 1;
>


\
 
 \ /
  Last update: 2014-06-16 17:41    [W:0.041 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site