mm: trivial clean up in insert_page()
Subsystems (2)
PATCH 1/1 mm: trivial clean up in insert_page()
Make the success case use the same cleanup path as the failure case.
Signed-off-by Miklos Szeredi <[email protected]>
--- mm/memory.c | 2 -- 1 file changed, 2 deletions(-)
mm/memory.c +0 -2
@@ -1470,8 +1470,6 @@ static int insert_page(struct vm_area_stset_pte_at (mm, addr, pte,mk_pte (page, prot)); retval =0 ; -pte_unmap_unlock (pte, ptl); -return retval; out_unlock:pte_unmap_unlock (pte, ptl); out:
Quoted 3 lines · Miklos Szeredi
Make the success case use the same cleanup path as the failure case.
Signed-off-by Miklos Szeredi <[email protected]>
Reviewed-by Anshuman Khandual <[email protected]>