From 209095d6903d743605eafb4b436e86f113d6a283 Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Sun, 24 Sep 2023 08:27:52 +0900 Subject: [PATCH] out_oracle_log_analytics: remove flb_errno that checks NULL Signed-off-by: Takahiro Yamashita --- plugins/out_oracle_log_analytics/oci_logan_conf.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/out_oracle_log_analytics/oci_logan_conf.c b/plugins/out_oracle_log_analytics/oci_logan_conf.c index d6efc431c29..3778a298d2b 100644 --- a/plugins/out_oracle_log_analytics/oci_logan_conf.c +++ b/plugins/out_oracle_log_analytics/oci_logan_conf.c @@ -290,7 +290,6 @@ struct flb_oci_logan *flb_oci_logan_conf_create(struct flb_output_instance *ins, if (ctx->oci_config_in_record == FLB_FALSE) { if (ctx->oci_la_log_source_name == NULL || ctx->oci_la_log_group_id == NULL) { - flb_errno(); flb_plg_error(ctx->ins, "log source name and log group id are required"); flb_oci_logan_conf_destroy(ctx); @@ -318,7 +317,6 @@ struct flb_oci_logan *flb_oci_logan_conf_create(struct flb_output_instance *ins, } if (!ctx->config_file_location) { - flb_errno(); flb_plg_error(ctx->ins, "config file location is required"); flb_oci_logan_conf_destroy(ctx); return NULL; @@ -336,7 +334,6 @@ struct flb_oci_logan *flb_oci_logan_conf_create(struct flb_output_instance *ins, } else { if (!ctx->region) { - flb_errno(); flb_plg_error(ctx->ins, "Region is required"); flb_oci_logan_conf_destroy(ctx); return NULL; @@ -347,7 +344,6 @@ struct flb_oci_logan *flb_oci_logan_conf_create(struct flb_output_instance *ins, if (!ctx->uri) { if (!ctx->namespace) { - flb_errno(); flb_plg_error(ctx->ins, "Namespace is required"); flb_oci_logan_conf_destroy(ctx); return NULL; @@ -490,4 +486,4 @@ int flb_oci_logan_conf_destroy(struct flb_oci_logan *ctx) { flb_free(ctx); return 0; -} \ No newline at end of file +}