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 <[email protected]> Reviewed-by: Martin Wilck <[email protected]> --- 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 95fa36db..e9cdb690 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, -- 2.50.1
