From af3d51622814a28e9029ce699fbe5d4192984dde Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Mon, 29 Jun 2020 10:56:47 -0700 Subject: [PATCH] device_parser: Suppress error message on .cdba open failure The error message indicating that cdba-server failed to open the config file was supposed to be moved to cdba-server.c, but I forgot to remove the error from the device_parser. Fix this. Signed-off-by: Bjorn Andersson --- device_parser.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/device_parser.c b/device_parser.c index a6a15f2..dbf4aa5 100644 --- a/device_parser.c +++ b/device_parser.c @@ -154,10 +154,8 @@ int device_parser(const char *path) FILE *fh; fh = fopen(path, "r"); - if (!fh) { - fprintf(stderr, "device parser: unable to open %s\n", path); + if (!fh) return -1; - } if(!yaml_parser_initialize(&dp.parser)) { fprintf(stderr, "device parser: failed to initialize parser\n");