From: Keith Busch Date: Fri, 26 Jun 2020 20:43:26 +0000 (-0700) Subject: fix compile errors from recent pr X-Git-Tag: v1.13~74 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c63fada9285d330c8ebe825604edc43a4b935b42;p=users%2Fsagi%2Fnvme-cli.git fix compile errors from recent pr Signed-off-by: Keith Busch --- diff --git a/plugins/zns/zns.c b/plugins/zns/zns.c index 407e7f90..803887d5 100644 --- a/plugins/zns/zns.c +++ b/plugins/zns/zns.c @@ -132,7 +132,6 @@ static int __zns_mgmt_send(int fd, __u32 namespace_id, __u64 zslba, err = nvme_zns_mgmt_send(fd, namespace_id, zslba, select_all, zsa, data_len, buf); -close_fd: close(fd); return err; } @@ -170,8 +169,8 @@ static int zns_mgmt_send(int argc, char **argv, struct command *cmd, struct plug if (fd < 0) goto free; - if (!namespace_id) { - err = namespace_id = nvme_get_nsid(fd); + if (!cfg.namespace_id) { + err = cfg.namespace_id = nvme_get_nsid(fd); if (err < 0) { perror("get-namespace-id"); goto free; @@ -370,7 +369,6 @@ static int set_zone_desc(int argc, char **argv, struct command *cmd, struct plug int fd, ffd = STDIN_FILENO, err; void *buf = NULL; __u32 data_len; - uint8_t lbaf; struct config { __u64 zslba;