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 <bjorn.andersson@linaro.org>
This commit is contained in:
Bjorn Andersson
2020-06-29 10:56:47 -07:00
parent b01431a83d
commit af3d516228

View File

@@ -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");