Skip to contentSkip to conversation

multipathd: fix typo that breaks failure path

PATCH In review Benjamin Marzinski 2 participants 2 messages Jul 21, 2016 – Jul 22, 2016 Device mapper

lore
Share & tools
lore

Benjamin Marzinski

author maintainer
#0 lore raw

PATCH 1/1 multipathd: fix typo that breaks failure path

There wasn't supposed to be a semicolon after the "else" when checking paths in checkerloop().

---
 multipathd/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
multipathd/main.c +1 -1
index c129298..d90d856 100644
@@ -1790,7 +1790,7 @@ checkerloop (void *ap)
 					vector_del_slot(vecs->pathvec, i);
 					free_path(pp);
 					i--;
-				} else;
+				} else
 					num_paths += rc;
 			}
 			lock_cleanup_pop(vecs->lock);
Signature · 1 line
1.8.3.1
#1 lore raw

Merged.
Thanks.

Quoted 25 lines · Benjamin Marzinski

There wasn't supposed to be a semicolon after the "else" when checking paths in checkerloop().

---
 multipathd/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
multipathd/main.c +1 -2
index c129298..d90d856 100644
@@ -1790,7 +1790,7 @@ checkerloop (void *ap)
                                        vector_del_slot(vecs->pathvec, i);
                                        free_path(pp);
                                        i--;
-                               } else;
+                               } else
                                        num_paths += rc;
                        }
                        lock_cleanup_pop(vecs->lock);
--

1.8.3.1