projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83520cb
)
x86/PoD: drop a pointless local variable
author
Jan Beulich
<jbeulich@suse.com>
Tue, 6 Jun 2017 12:33:47 +0000
(14:33 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Tue, 6 Jun 2017 12:33:47 +0000
(14:33 +0200)
... and move another one into a more narrow scope.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/p2m-pod.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/mm/p2m-pod.c
b/xen/arch/x86/mm/p2m-pod.c
index d5fea7209b20f16b1c949e78306e90d0d870ee07..4085b7f7522e1daedad748ba5328653d32cc39dc 100644
(file)
--- a/
xen/arch/x86/mm/p2m-pod.c
+++ b/
xen/arch/x86/mm/p2m-pod.c
@@
-1180,8
+1180,6
@@
guest_physmap_mark_populate_on_demand(struct domain *d, unsigned long gfn,
{
struct p2m_domain *p2m = p2m_get_hostp2m(d);
unsigned long i, n, pod_count = 0;
- p2m_type_t ot;
- mfn_t omfn;
int rc = 0;
if ( !paging_mode_translate(d) )
@@
-1194,10
+1192,11
@@
guest_physmap_mark_populate_on_demand(struct domain *d, unsigned long gfn,
/* Make sure all gpfns are unused */
for ( i = 0; i < (1UL << order); i += n )
{
+ p2m_type_t ot;
p2m_access_t a;
unsigned int cur_order;
-
omfn =
p2m->get_entry(p2m, gfn + i, &ot, &a, 0, &cur_order, NULL);
+ p2m->get_entry(p2m, gfn + i, &ot, &a, 0, &cur_order, NULL);
n = 1UL << min(order, cur_order);
if ( p2m_is_ram(ot) )
{