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
2d815d955e
commit
77f3b67520
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue