From 5a722f89d30093cf5e1d2bc536fd73d6f9e5513f Mon Sep 17 00:00:00 2001 From: Julien Grall Date: Thu, 29 Oct 2015 12:20:38 +0100 Subject: [PATCH] grant_table: avoid to shadow "frame" in __gnttab_map_grant_ref The variable "frame" is declared twice within the function __gntab_map_grant_ref. This makes the code quite confusing to read. The second definition is not useful as the first one is never used until then. So drop it. Signed-off-by: Julien Grall Reviewed-by: Andrew Cooper --- xen/common/grant_table.c | 1 - 1 file changed, 1 deletion(-) diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index c92abdaaae..5d52d1e4bb 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -826,7 +826,6 @@ __gnttab_map_grant_ref( if ( !act->pin ) { - unsigned long frame; unsigned long gfn = rgt->gt_version == 1 ? shared_entry_v1(rgt, op->ref).frame : shared_entry_v2(rgt, op->ref).full_page.frame; -- 2.30.2