]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-cli: fix dead-code nvmf log page discovery
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Mon, 20 Aug 2018 00:36:07 +0000 (20:36 -0400)
committerKeith Busch <keith.busch@intel.com>
Mon, 20 Aug 2018 18:41:08 +0000 (12:41 -0600)
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
fabrics.c

index 9bf2594ef3b157ffb6c7148358bd27e4368f7d1b..514082ed300e54bdadb14ef7650222b71306bd13 100644 (file)
--- a/fabrics.c
+++ b/fabrics.c
@@ -353,9 +353,9 @@ static int nvmf_get_log_page_discovery(const char *dev_path,
 
        /* needs to be freed by the caller */
        *logp = log;
+       error = DISC_OK;
        goto out_close;
 
-       error = DISC_OK;
 out_free_log:
        free(log);
 out_close: