check_path() already has saved the value of conf->checkint in the local variable checkint, so there's no reason to read it again. Reviewed-by: Martin Wilck <mwilck@xxxxxxxx> Signed-off-by: Benjamin Marzinski <bmarzins@xxxxxxxxxx> --- multipathd/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/multipathd/main.c b/multipathd/main.c index 92a0e424..84450906 100644 --- a/multipathd/main.c +++ b/multipathd/main.c @@ -2513,9 +2513,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