From 1a27164bc0e12da7d105e42a63ade0592edd9dc1 Mon Sep 17 00:00:00 2001 From: Nate Thornton Date: Fri, 3 Apr 2026 11:16:24 -0700 Subject: [PATCH] lm: Migration Recv displayed suspend status is incorrect local result variable is not needed; use command result instead Signed-off-by: Nate Thornton --- plugins/lm/lm-nvme.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/lm/lm-nvme.c b/plugins/lm/lm-nvme.c index 423cf2c9f9..d3cee1b3cb 100644 --- a/plugins/lm/lm-nvme.c +++ b/plugins/lm/lm-nvme.c @@ -413,7 +413,6 @@ static int lm_migration_recv(int argc, char **argv, struct command *acmd, struct struct nvme_passthru_cmd cmd; nvme_print_flags_t flags; void *data = NULL; - __u64 result = 0; int err = -1; __u16 mos; @@ -495,7 +494,7 @@ static int lm_migration_recv(int argc, char **argv, struct command *acmd, struct if (flags == NORMAL) printf("CDW0: 0x%"PRIu64": Controller %sSuspended\n", (uint64_t)cmd.result, - (result & NVME_LM_GET_CONTROLLER_STATE_CSUP) ? + (cmd.result & NVME_LM_GET_CONTROLLER_STATE_CSUP) ? "" : "NOT "); if (cfg.output && strlen(cfg.output)) {