Skip to contentSkip to conversation

gnttab: drop dead local variable from gnttab_map_frame_begin()

PATCH In review Jan Beulich 3 participants 3 messages Jun 16

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
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()")

Thanks.

~ Oleksii

Reviewed-by on v1 1/1
#2 lore raw
In reply to Jan Beulich
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()")

~Michal