From 77f3b675206cc65689c38b51a6c38f3c8d977f2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Thu, 3 Jun 2021 17:10:41 +0200 Subject: [PATCH] libzutil: zpool_find_config: remove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Reviewed-by: Ryan Moeller Signed-off-by: Ahelenia ZiemiaƄska Closes #12187 --- lib/libzutil/zutil_import.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/libzutil/zutil_import.c b/lib/libzutil/zutil_import.c index 0e59ec8c88..9d7fcb8d96 100644 --- a/lib/libzutil/zutil_import.c +++ b/lib/libzutil/zutil_import.c @@ -1787,16 +1787,13 @@ zpool_find_config(void *hdl, const char *target, nvlist_t **configp, nvlist_t *match = NULL; nvlist_t *config = NULL; char *sepp = NULL; - char sep = '\0'; int count = 0; char *targetdup = strdup(target); *configp = NULL; - if ((sepp = strpbrk(targetdup, "/@")) != NULL) { - sep = *sepp; + if ((sepp = strpbrk(targetdup, "/@")) != NULL) *sepp = '\0'; - } pools = zpool_search_import(hdl, args, pco);