rdp: Use xzalloc for output creation

Reduce error handling burden

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2022-08-09 08:13:09 -05:00 committed by Daniel Stone
parent f9832bcb0a
commit 801d9c55c8
1 changed files with 1 additions and 3 deletions

View File

@ -532,9 +532,7 @@ rdp_output_create(struct weston_compositor *compositor, const char *name)
{
struct rdp_output *output;
output = zalloc(sizeof *output);
if (output == NULL)
return NULL;
output = xzalloc(sizeof *output);
weston_output_init(&output->base, compositor, name);