Commit f8aba47a authored by Chad Versace's avatar Chad Versace

all: Remove unneeded use of WCORE_ERROR_DISABLED

Now that the error policy has changed (first error wins),
most uses of WCORE_ERROR_DISABLED are unneeded.

The only usage that remains occurs in linux_platform_dl_can_open().
Signed-off-by: default avatarChad Versace <chad.versace@linux.intel.com>
parent bd835b52
......@@ -84,9 +84,7 @@ wcore_platform_create(int platform, int gl_api)
return self;
error:
WCORE_ERROR_DISABLED({
wcore_platform_destroy(self);
});
wcore_platform_destroy(self);
return NULL;
}
......
......@@ -176,10 +176,8 @@ glx_config_choose(
goto end;
error:
WCORE_ERROR_DISABLED({
glx_config_destroy(self);
self = NULL;
});
glx_config_destroy(self);
self = NULL;
end:
if (configs)
......
......@@ -80,9 +80,7 @@ glx_display_connect(
return self;
error:
WCORE_ERROR_DISABLED({
glx_display_disconnect(self);
});
glx_display_disconnect(self);
return NULL;
}
......
......@@ -74,9 +74,7 @@ glx_platform_create(
return self;
error:
WCORE_ERROR_DISABLED({
glx_platform_destroy(self);
});
glx_platform_destroy(self);
return NULL;
}
......
......@@ -67,9 +67,7 @@ glx_window_create(
return self;
error:
WCORE_ERROR_DISABLED({
glx_window_destroy(self);
});
glx_window_destroy(self);
return NULL;
}
......
......@@ -79,9 +79,7 @@ wayland_display_connect(
return self;
error:
WCORE_ERROR_DISABLED({
wayland_display_disconnect(self);
});
wayland_display_disconnect(self);
return NULL;
}
......
......@@ -93,9 +93,7 @@ wayland_platform_create(
return self;
error:
WCORE_ERROR_DISABLED({
wayland_platform_destroy(self);
});
wayland_platform_destroy(self);
return NULL;
}
......
......@@ -93,9 +93,7 @@ wayland_window_create(
return self;
error:
WCORE_ERROR_DISABLED({
wayland_window_destroy(self);
});
wayland_window_destroy(self);
return NULL;
}
......
......@@ -58,9 +58,7 @@ xegl_display_connect(
return self;
error:
WCORE_ERROR_DISABLED({
xegl_display_disconnect(self);
});
xegl_display_disconnect(self);
return NULL;
}
......
......@@ -93,9 +93,7 @@ xegl_platform_create(
return self;
error:
WCORE_ERROR_DISABLED({
xegl_platform_destroy(self);
});
xegl_platform_destroy(self);
return NULL;
}
......
......@@ -64,9 +64,7 @@ xegl_window_create(
return self;
error:
WCORE_ERROR_DISABLED({
xegl_window_destroy(self);
});
xegl_window_destroy(self);
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment