Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions plugins/solidigm/solidigm-internal-logs.c
Original file line number Diff line number Diff line change
Expand Up @@ -808,16 +808,18 @@ static int ilog_dump_pel(struct libnvme_transport_handle *hdl, struct ilog *ilog
err = nvme_get_log_persistent_event(hdl, NVME_PEVENT_LOG_READ,
pevent_log_full, lp.buffer_size);
if (err)
return err;
goto out;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary because the err label just does a return err?


ilog->count++;

err = log_save(&lp, ilog->cfg->out_dir, "log_pages", "lid_0x0d_lsp_0x00_lsi_0x0000.bin",
pevent_log_full, lp.buffer_size);
if (err)
goto out;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, can't this just be a return err?


nvme_get_log_persistent_event(hdl, NVME_PEVENT_LOG_RELEASE_CTX,
pevent, sizeof(*pevent));

err = nvme_get_log_persistent_event(hdl, NVME_PEVENT_LOG_RELEASE_CTX,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this could be just return nvme_get_log_persistentent_event, no?

pevent, sizeof(*pevent));
out:
return err;
}

Expand Down