summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-06-03 17:10:41 +0200
committerBrian Behlendorf <[email protected]>2022-05-02 15:42:58 -0700
commita1a54b3e470bf59f787bc8d92fd64b9e20e8cc06 (patch)
treec283ceb08b16e6357add8646e9da07c2c439b654 /lib
parentce8d41ef75e1667710a5aeb393877c7ed4b34576 (diff)
libzutil: zpool_find_config: remove unused variable
Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #12187
Diffstat (limited to 'lib')
-rw-r--r--lib/libzutil/zutil_import.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libzutil/zutil_import.c b/lib/libzutil/zutil_import.c
index d91953813..f6f125e7a 100644
--- a/lib/libzutil/zutil_import.c
+++ b/lib/libzutil/zutil_import.c
@@ -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);