libzutil: zpool_find_config: remove unused variable

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12187
This commit is contained in:
наб 2021-06-03 17:10:41 +02:00 committed by Brian Behlendorf
parent ce8d41ef75
commit a1a54b3e47
1 changed files with 1 additions and 4 deletions

View File

@ -1791,16 +1791,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);