Skip to content

Commit

Permalink
nvme: fix ave-discovery-log command LID setting
Browse files Browse the repository at this point in the history
Also fixed the function definition unnecessary line break.

Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t committed Feb 28, 2025
1 parent 21516ec commit 703daad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -10713,8 +10713,7 @@ static int get_host_discovery_log(int argc, char **argv, struct command *cmd, st
return err;
}

static int get_ave_discovery(struct nvme_dev *dev, bool rae,
struct nvme_ave_discover_log **logp)
static int get_ave_discovery(struct nvme_dev *dev, bool rae, struct nvme_ave_discover_log **logp)
{
int err;
struct nvme_ave_discover_log *log;
Expand All @@ -10723,7 +10722,7 @@ static int get_ave_discovery(struct nvme_dev *dev, bool rae,
.args_size = sizeof(args),
.fd = dev_fd(dev),
.timeout = NVME_DEFAULT_IOCTL_TIMEOUT,
.lid = NVME_LOG_LID_HOST_DISCOVER,
.lid = NVME_LOG_LID_AVE_DISCOVER,
.nsid = NVME_NSID_ALL,
.rae = rae,
};
Expand Down

0 comments on commit 703daad

Please sign in to comment.