[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 3/6] xen/common: 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 <julien.grall@xxxxxxxxxx> --- Cc: Ian Campbell <ian.campbell@xxxxxxxxxx> Cc: Jan Beulich <jbeulich@xxxxxxxx> Cc: Keir Fraser <keir@xxxxxxx> Cc: Tim Deegan <tim@xxxxxxx> --- 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 c92abda..5d52d1e 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.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |