Skip to content

Commit

Permalink
libmultipath: dm_get_maps(): remove spurious assignment
Browse files Browse the repository at this point in the history
Issue found by coverity:
  CID 393674:  Code maintainability issues  (UNUSED_VALUE)
  Assigning value "NULL" to "mpp" here, but that stored value is overwritten
  before it can be used.

Signed-off-by: Martin Wilck <mwilck@suse.com>
Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
  • Loading branch information
mwilck committed Aug 29, 2023
1 parent 8ed9621 commit 44f1f08
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion libmultipath/devmapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,6 @@ dm_get_maps (vector mp)
}

vector_set_slot(mp, mpp);
mpp = NULL;
next:
next = names->next;
names = (void *) names + next;
Expand Down

0 comments on commit 44f1f08

Please sign in to comment.