gnttab: drop dead local variable from gnttab_map_frame_begin()
PATCH 1/1 gnttab: drop dead local variable from gnttab_map_frame_begin()
As Michal had indicated in review, status is now a variable that is set but never read. I made the resulting change locally, but then committed a stale version of the patch (also omitting Michal's R-b).
Amends: eff88c4d3543 ("gnttab: simplify (really: drop) gnttab_set_frame_gfn()")
xen/common/grant_table.c +0 -3
@@ -4255,7 +4255,6 @@ int gnttab_map_frame_begin( {int rc =0 ;struct grant_table *gt = d->grant_table; -bool status = false;if (gfn_eq (gfn,INVALID_GFN ) ) {
@@ -4268,8 +4267,6 @@ int gnttab_map_frame_begin(if (evaluate_nospec (gt->gt_version ==2 ) && (idx & XENMAPIDX_grant_table_status) ) { idx &= ~XENMAPIDX_grant_table_status; - status = true; - rc =gnttab_get_status_frame_mfn (d, idx, mfn); }else
Quoted 8 lines · Jan Beulich
As Michal had indicated in review, status is now a variable that is set but never read. I made the resulting change locally, but then committed a stale version of the patch (also omitting Michal's R-b).
Amends:
eff88c4d3543("gnttab: simplify (really: drop)gnttab_set_frame_gfn()")Reported-by Michal Orzel <[email protected]>Signed-off-by Jan Beulich <[email protected]>
Thanks.
~ Oleksii
Quoted 7 lines · Jan Beulich
As Michal had indicated in review, status is now a variable that is set but never read. I made the resulting change locally, but then committed a stale version of the patch (also omitting Michal's R-b).
Amends:
eff88c4d3543("gnttab: simplify (really: drop)gnttab_set_frame_gfn()")Reported-by Michal Orzel <[email protected]>Signed-off-by Jan Beulich <[email protected]>
~Michal