Skip to content

Commit 1a27164

Browse files
committed
lm: Migration Recv displayed suspend status is incorrect
local result variable is not needed; use command result instead Signed-off-by: Nate Thornton <[email protected]>
1 parent 013f3a9 commit 1a27164

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

plugins/lm/lm-nvme.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,6 @@ static int lm_migration_recv(int argc, char **argv, struct command *acmd, struct
413413
struct nvme_passthru_cmd cmd;
414414
nvme_print_flags_t flags;
415415
void *data = NULL;
416-
__u64 result = 0;
417416
int err = -1;
418417
__u16 mos;
419418

@@ -495,7 +494,7 @@ static int lm_migration_recv(int argc, char **argv, struct command *acmd, struct
495494
if (flags == NORMAL)
496495
printf("CDW0: 0x%"PRIu64": Controller %sSuspended\n",
497496
(uint64_t)cmd.result,
498-
(result & NVME_LM_GET_CONTROLLER_STATE_CSUP) ?
497+
(cmd.result & NVME_LM_GET_CONTROLLER_STATE_CSUP) ?
499498
"" : "NOT ");
500499

501500
if (cfg.output && strlen(cfg.output)) {

0 commit comments

Comments
 (0)