mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-03-03 13:16:38 +00:00
u_config_json: Remove duplicated is_json_ok code
This commit is contained in:
parent
2959747221
commit
054850de76
|
@ -238,12 +238,7 @@ u_config_json_get_remote_port(struct u_config_json *json, int *out_port)
|
|||
static cJSON *
|
||||
open_tracking_settings(struct u_config_json *json)
|
||||
{
|
||||
if (json->root == NULL) {
|
||||
if (json->file_loaded) {
|
||||
U_LOG_E("JSON not parsed!");
|
||||
} else {
|
||||
U_LOG_W("No config file!");
|
||||
}
|
||||
if (!is_json_ok(json)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue