Treat non-zero return values from parse_args() as errors, and not
just negative return values. Also makes this consistent with other
functions in nvme.c where parse_args() is invoked.
Signed-off-by: Martin George <marting@netapp.com>
NVME_ARGS(opts);
err = parse_args(argc, argv, desc, opts);
- if (err < 0)
+ if (err)
return err;
devname = NULL;
NVME_ARGS(opts);
err = parse_args(argc, argv, desc, opts);
- if (err < 0)
+ if (err)
return err;
err = validate_output_format(nvme_cfg.output_format, &flags);