Skip to content

Commit

Permalink
nvme: Just return 0 by get-reg and set-reg commands if not error
Browse files Browse the repository at this point in the history
The err variable is set 0 if no error so just return 0 instead.

Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t committed Feb 4, 2024
1 parent 97017a0 commit 45dc9ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -5593,7 +5593,7 @@ static int get_register(int argc, char **argv, struct command *cmd, struct plugi
else
munmap(bar, getpagesize());

return err;
return 0;
}

static void nvme_set_register(void *bar, int offset, uint64_t value)
Expand Down Expand Up @@ -5650,7 +5650,7 @@ static int set_register(int argc, char **argv, struct command *cmd, struct plugi

munmap(bar, getpagesize());

return err;
return 0;
}

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

0 comments on commit 45dc9ee

Please sign in to comment.