From: Tokunori Ikegami Date: Fri, 27 Jan 2023 16:23:09 +0000 (+0900) Subject: nvme: Ignore device self-test wait option for abort operation X-Git-Tag: v2.3~3^2~4 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=cadd73a2c8a1d638c3f7e2d2080fcf45086188d8;p=users%2Fsagi%2Fnvme-cli.git nvme: Ignore device self-test wait option for abort operation Signed-off-by: Tokunori Ikegami --- diff --git a/nvme.c b/nvme.c index d0f91fe8..8a9702e6 100644 --- a/nvme.c +++ b/nvme.c @@ -4300,7 +4300,7 @@ static int device_self_test(int argc, char **argv, struct command *cmd, struct p else if (cfg.stc == NVME_ST_CODE_SHORT) printf("Short Device self-test started\n"); - if (cfg.wait) + if (cfg.wait && cfg.stc != 0xf) err = wait_self_test(dev); } else if (err > 0) { nvme_show_status(err);