diff options
| author | Gustavo A. R. Silva <[email protected]> | 2017-06-23 17:01:20 -0500 |
|---|---|---|
| committer | Juergen Gross <[email protected]> | 2017-07-03 13:24:17 +0200 |
| commit | bf1b9ddf181d29ec91f87d9c52bcb551ccf04157 (patch) | |
| tree | f731ff5c6982f086f30c29787ce7589445ec66f2 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | a5d5f328b0e2baa5ee7c119fd66324eb79eeeb66 (diff) | |
x86: xen: remove unnecessary variable in xen_foreach_remap_area()
Remove unnecessary variable mfn in function xen_foreach_remap_area() and,
refactor the code.
Variable mfn at line 518:mfn = xen_remap_buf.mfns[i];
is only being used to store a value to be passed as
an argument to the xen_update_mem_tables() function.
This value can be passed directly, which makes variable
mfn unnecessary. Also, value assigned to variable mfn
at line 534:mfn = xen_remap_mfn; is never used.
Addresses-Coverity-ID: 1260110
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Reviewed-by: Juergen Gross <[email protected]>
Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions