check_path() already has saved the value of conf->checkint in the local
variable checkint, so there's no reason to read it again.

Signed-off-by: Benjamin Marzinski <[email protected]>
---
 multipathd/main.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/multipathd/main.c b/multipathd/main.c
index e32af693..daf668eb 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -2510,9 +2510,7 @@ check_path (struct vectors * vecs, struct path * pp, 
unsigned int ticks)
                 * upon state change, reset the checkint
                 * to the shortest delay
                 */
-               conf = get_multipath_config();
-               pp->checkint = conf->checkint;
-               put_multipath_config(conf);
+               pp->checkint = checkint;
 
                if (newstate != PATH_UP && newstate != PATH_GHOST) {
                        /*
-- 
2.45.0


Reply via email to