From 97c9e5bbfebce91bad2526acbd39cab4985bdce7 Mon Sep 17 00:00:00 2001 From: Hannes Reinecke Date: Fri, 22 Apr 2022 13:07:27 +0200 Subject: [PATCH] plugins/ocp: remove dead code Found by coverity. Signed-off-by: Hannes Reinecke --- plugins/ocp/ocp-nvme.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/plugins/ocp/ocp-nvme.c b/plugins/ocp/ocp-nvme.c index faac09d7..1e7649b7 100644 --- a/plugins/ocp/ocp-nvme.c +++ b/plugins/ocp/ocp-nvme.c @@ -380,11 +380,6 @@ static int get_c0_log_page(int fd, char *format) } /* print the data */ - if (!data) { - fprintf(stderr, "ERROR : OCP : Invalid buffer to read 0xC0 log\n"); - ret = -1; - goto out; - } switch (fmt) { case NORMAL: ocp_print_C0_log_normal(data); @@ -728,13 +723,6 @@ static int get_c3_log_page(int fd, char *format) } } - /* print the data */ - if (!log_data) { - fprintf(stderr, - "ERROR : OCP : Invalid C3 log data buffer\n"); - ret = -1; - goto out; - } switch (fmt) { case NORMAL: ocp_print_C3_log_normal(fd, log_data); -- 2.50.1