The local variable 'p2mt' shadows a declaration of the same variable
in the enclosing scope, but removing the inner declaration
does not alter the semantics ('p2mt' is an output for the get_gfn
call later on) and this resolves a violation of
MISRA C:2012 Rule 5.3.
No functional changes.
Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
case XENMAPSPACE_gmfn:
{
- p2m_type_t p2mt;
-
gfn = idx;
mfn = get_gfn_unshare(d, gfn, &p2mt);
/* If the page is still shared, exit early */