projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c65ea16
)
x86/p2m: drop pointless nested variable from guest_physmap_add_entry()
author
Jan Beulich
<jbeulich@suse.com>
Fri, 3 Apr 2020 08:57:41 +0000
(10:57 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Fri, 3 Apr 2020 08:57:41 +0000
(10:57 +0200)
There's an outer scope rc already, and its use for the mem-sharing logic
does not conflict with its use elsewhere in the function.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm/p2m.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/mm/p2m.c
b/xen/arch/x86/mm/p2m.c
index 113456a7e9abcf2c5282d42c06c0a89b689618f1..51b9e2584d9da0e0ec2f620b5ce2580f9c2022c5 100644
(file)
--- a/
xen/arch/x86/mm/p2m.c
+++ b/
xen/arch/x86/mm/p2m.c
@@
-902,7
+902,6
@@
guest_physmap_add_entry(struct domain *d, gfn_t gfn, mfn_t mfn,
if ( p2m_is_shared(ot) )
{
/* Do an unshare to cleanly take care of all corner cases. */
- int rc;
rc = mem_sharing_unshare_page(p2m->domain, gfn_x(gfn_add(gfn, i)));
if ( rc )
{