diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-01-31 04:17:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-01-31 04:17:04 +0000 |
commit | 7e691c813bdf26bf9c51f03ee926818c00cc6e39 (patch) | |
tree | 1ecdb0c04700e31585faf09a0a868cf63814fc51 /examples/mi-mctp.c | |
parent | Releasing debian version 1.2-3. (diff) | |
download | libnvme-7e691c813bdf26bf9c51f03ee926818c00cc6e39.tar.xz libnvme-7e691c813bdf26bf9c51f03ee926818c00cc6e39.zip |
Merging upstream version 1.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'examples/mi-mctp.c')
-rw-r--r-- | examples/mi-mctp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/mi-mctp.c b/examples/mi-mctp.c index 8d660af..c9a3852 100644 --- a/examples/mi-mctp.c +++ b/examples/mi-mctp.c @@ -347,14 +347,14 @@ int do_admin_raw(nvme_mi_ep_t ep, int argc, char **argv) } tmp = atoi(argv[1]); - if (tmp < 0 || tmp > 0xffff) { + if (tmp > 0xffff) { fprintf(stderr, "invalid controller ID\n"); return -1; } ctrl_id = tmp & 0xffff; tmp = atoi(argv[2]); - if (tmp < 0 || tmp > 0xff) { + if (tmp > 0xff) { fprintf(stderr, "invalid opcode\n"); return -1; } @@ -461,7 +461,7 @@ int do_security_info(nvme_mi_ep_t ep, int argc, char **argv) } tmp = atoi(argv[1]); - if (tmp < 0 || tmp > 0xffff) { + if (tmp > 0xffff) { fprintf(stderr, "invalid controller ID\n"); return -1; } |