Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3dd5b82 authored by Robert P. J. Day's avatar Robert P. J. Day Committed by David S. Miller
Browse files

[SPARC]: Use shorter form of "get_zeroed_page".

parent 631a9dca
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1941,9 +1941,7 @@ static pte_t *sun4c_pte_alloc_one_kernel(struct mm_struct *mm, unsigned long add
	if ((pte = sun4c_pte_alloc_one_fast(mm, address)) != NULL)
		return pte;

	pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT);
	if (pte)
		memset(pte, 0, PAGE_SIZE);
	pte = (pte_t *)get_zeroed_page(GFP_KERNEL|__GFP_REPEAT);
	return pte;
}