Don't set ret to MPATH_PR_SUCCESS, after the code just made sure that it was already set to MPATH_PR_SUCCESS.
Signed-off-by: Benjamin Marzinski <bmarz...@redhat.com> --- libmpathpersist/mpath_persist_int.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libmpathpersist/mpath_persist_int.c b/libmpathpersist/mpath_persist_int.c index 4172167a..f2c81fa0 100644 --- a/libmpathpersist/mpath_persist_int.c +++ b/libmpathpersist/mpath_persist_int.c @@ -757,8 +757,6 @@ int update_map_pr(struct multipath *mpp) goto out; } - ret = MPATH_PR_SUCCESS; - if (resp->prin_descriptor.prin_readkeys.additional_length == 0 ) { condlog(was_set ? 1 : 3, "%s: No key found. Device may not be registered. ", mpp->alias); -- 2.48.1