The rename s/p2mt/t/ is done to avoid shadowing the same declaration
in the enclosing scope.
Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
---
Is the semantics of the function altered if the inner declaration
is removed entirely?
---
xen/arch/x86/mm/p2m.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/xen/arch/x86/mm/p2m.c b/xen/arch/x86/mm/p2m.c
index 714358f953..fa9f7616e8 100644
--- a/xen/arch/x86/mm/p2m.c
+++ b/xen/arch/x86/mm/p2m.c
@@ -2439,12 +2439,12 @@ int xenmem_add_to_physmap_one(
case XENMAPSPACE_gmfn:
{
- p2m_type_t p2mt;
+ p2m_type_t t;
gfn = idx;
- mfn = get_gfn_unshare(d, gfn, &p2mt);
+ mfn = get_gfn_unshare(d, gfn, &t);
/* If the page is still shared, exit early */
- if ( p2m_is_shared(p2mt) )
+ if ( p2m_is_shared(t) )
{
put_gfn(d, gfn);
return -ENOMEM;
--
2.34.1