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:
parent
ce8d41ef75
commit
a1a54b3e47
|
@ -1791,16 +1791,13 @@ zpool_find_config(void *hdl, const char *target, nvlist_t **configp,
|
||||||
nvlist_t *match = NULL;
|
nvlist_t *match = NULL;
|
||||||
nvlist_t *config = NULL;
|
nvlist_t *config = NULL;
|
||||||
char *sepp = NULL;
|
char *sepp = NULL;
|
||||||
char sep = '\0';
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
char *targetdup = strdup(target);
|
char *targetdup = strdup(target);
|
||||||
|
|
||||||
*configp = NULL;
|
*configp = NULL;
|
||||||
|
|
||||||
if ((sepp = strpbrk(targetdup, "/@")) != NULL) {
|
if ((sepp = strpbrk(targetdup, "/@")) != NULL)
|
||||||
sep = *sepp;
|
|
||||||
*sepp = '\0';
|
*sepp = '\0';
|
||||||
}
|
|
||||||
|
|
||||||
pools = zpool_search_import(hdl, args, pco);
|
pools = zpool_search_import(hdl, args, pco);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue