};
fd = parse_and_open(argc, argv, desc, command_line_options, &cfg, sizeof(cfg));
+ if (fd < 0)
+ return fd;
err = nvme_get_log(fd, cfg.namespace_id, 0xca,
NVME_NO_LOG_LSP, NVME_NO_LOG_LPO,
};
fd = parse_and_open(argc, argv, desc, command_line_options, &cfg, sizeof(cfg));
+ if (fd < 0)
+ return fd;
if (cfg.sel > 7) {
fprintf(stderr, "invalid 'select' param:%d\n", cfg.sel);
};
fd = parse_and_open(argc, argv, desc, command_line_options, &cfg, sizeof(cfg));
+ if (fd < 0)
+ return fd;
if (!cfg.feature_id) {
fprintf(stderr, "feature-id required param\n");