[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] grant_table: avoid to shadow "frame" in __gnttab_map_grant_ref
commit 5a722f89d30093cf5e1d2bc536fd73d6f9e5513f Author: Julien Grall <julien.grall@xxxxxxxxxx> AuthorDate: Thu Oct 29 12:20:38 2015 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Thu Oct 29 12:20:38 2015 +0100 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> Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/common/grant_table.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) 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; -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |