grant_table: avoid to shadow "frame" in __gnttab_map_grant_ref
authorJulien Grall <julien.grall@citrix.com>
Thu, 29 Oct 2015 11:20:38 +0000 (12:20 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 29 Oct 2015 11:20:38 +0000 (12:20 +0100)
commit5a722f89d30093cf5e1d2bc536fd73d6f9e5513f
treeddd094ec7beaebaea1ae2b205151b6423dbc1501
parentf6f08decb5f24ac299ab2ce23e2164ed8b13ca50
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@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/grant_table.c