From 835bf029d2d45c5c3cfa72919928da7ceb5875f4 Mon Sep 17 00:00:00 2001 From: Tokunori Ikegami Date: Sun, 1 Sep 2024 22:50:43 +0900 Subject: [PATCH] ocp: fix to set return value to get c9 log page data The value not set but checked the ret variable after the call. Signed-off-by: Tokunori Ikegami --- plugins/ocp/ocp-nvme.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/ocp/ocp-nvme.c b/plugins/ocp/ocp-nvme.c index 91f4083b..d6cac6f5 100644 --- a/plugins/ocp/ocp-nvme.c +++ b/plugins/ocp/ocp-nvme.c @@ -3600,8 +3600,7 @@ static int get_c9_log_page(struct nvme_dev *dev, char *format) return ret; } - get_c9_log_page_data(dev, 1, 0); - + ret = get_c9_log_page_data(dev, 1, 0); if (!ret) { switch (fmt) { case NORMAL: -- 2.50.1