Skip to content

Commit cd9b0ce

Browse files
ikegami-tigaw
authored andcommitted
nvme: fix ave-discovery-log command LID setting
Also fixed the function definition unnecessary line break. Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
1 parent 899c42b commit cd9b0ce

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nvme.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10713,8 +10713,7 @@ static int get_host_discovery_log(int argc, char **argv, struct command *cmd, st
1071310713
return err;
1071410714
}
1071510715

10716-
static int get_ave_discovery(struct nvme_dev *dev, bool rae,
10717-
struct nvme_ave_discover_log **logp)
10716+
static int get_ave_discovery(struct nvme_dev *dev, bool rae, struct nvme_ave_discover_log **logp)
1071810717
{
1071910718
int err;
1072010719
struct nvme_ave_discover_log *log;
@@ -10723,7 +10722,7 @@ static int get_ave_discovery(struct nvme_dev *dev, bool rae,
1072310722
.args_size = sizeof(args),
1072410723
.fd = dev_fd(dev),
1072510724
.timeout = NVME_DEFAULT_IOCTL_TIMEOUT,
10726-
.lid = NVME_LOG_LID_HOST_DISCOVER,
10725+
.lid = NVME_LOG_LID_AVE_DISCOVER,
1072710726
.nsid = NVME_NSID_ALL,
1072810727
.rae = rae,
1072910728
};

0 commit comments

Comments
 (0)