From: Miklos Szeredi <miklos@szeredi.hu>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org
Subject: [PATCH] mm: trivial clean up in insert_page()
Date: Thu, 23 May 2019 15:40:24 +0200 [thread overview]
Message-ID: <20190523134024.GC24093@localhost.localdomain> (raw)
Make the success case use the same cleanup path as the failure case.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
---
mm/memory.c | 2 --
1 file changed, 2 deletions(-)
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -1470,8 +1470,6 @@ static int insert_page(struct vm_area_st
set_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:
next reply other threads:[~2019-05-23 13:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-23 13:40 Miklos Szeredi [this message]
2019-05-24 13:18 ` [PATCH] mm: trivial clean up in insert_page() Anshuman Khandual
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190523134024.GC24093@localhost.localdomain \
--to=miklos@szeredi.hu \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).