]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
ocp: fix to set return value to get c9 log page data
authorTokunori Ikegami <ikegami.t@gmail.com>
Sun, 1 Sep 2024 13:50:43 +0000 (22:50 +0900)
committerDaniel Wagner <wagi@monom.org>
Mon, 9 Sep 2024 07:12:56 +0000 (09:12 +0200)
The value not set but checked the ret variable after the call.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
plugins/ocp/ocp-nvme.c

index 91f4083b17832a9874325f9a1d2939569c21993e..d6cac6f5a36270ee8bf9f8006a09dcb53b0f0ac3 100644 (file)
@@ -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: