Skip to content

Commit

Permalink
nvme: Do not map status to errno codes
Browse files Browse the repository at this point in the history
this modification orignally applied in below commit
9643090

Signed-off-by: Steven Seungcheol Lee <[email protected]>
  • Loading branch information
sc108-lee committed Sep 5, 2023
1 parent 6309ff8 commit ed7eec5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -2739,7 +2739,7 @@ static int id_ns_lba_format(int argc, char **argv, struct command *cmd, struct p
close_dev:
dev_close(dev);
ret:
return nvme_status_to_errno(err, false);
return err;
}

static int id_endurance_grp_list(int argc, char **argv, struct command *cmd,
Expand Down Expand Up @@ -3589,7 +3589,7 @@ static int nvm_id_ns(int argc, char **argv, struct command *cmd,
close_dev:
dev_close(dev);
ret:
return nvme_status_to_errno(err, false);
return err;
}

static int nvm_id_ns_lba_format(int argc, char **argv, struct command *cmd, struct plugin *plugin)
Expand Down Expand Up @@ -3656,7 +3656,7 @@ static int nvm_id_ns_lba_format(int argc, char **argv, struct command *cmd, stru
close_dev:
dev_close(dev);
ret:
return nvme_status_to_errno(err, false);
return err;
}

static int ns_descs(int argc, char **argv, struct command *cmd, struct plugin *plugin)
Expand Down

0 comments on commit ed7eec5

Please sign in to comment.