From 8d837e2f33b6b2989c037c9552dd99446164a20f Mon Sep 17 00:00:00 2001 From: Naoko Tanibata Date: Mon, 19 Nov 2018 11:32:10 +0900 Subject: transmitter: Fix the return value of transmitter_output_enable Change-Id: I630c26ecbc506052baf1c9ea3ab3f07be1ff393a Signed-off-by: Naoko Tanibata --- waltham-transmitter/transmitter-plugin/output.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'waltham-transmitter') diff --git a/waltham-transmitter/transmitter-plugin/output.c b/waltham-transmitter/transmitter-plugin/output.c index c379ce5..b98e170 100644 --- a/waltham-transmitter/transmitter-plugin/output.c +++ b/waltham-transmitter/transmitter-plugin/output.c @@ -255,15 +255,20 @@ transmitter_assign_planes(struct weston_output *base) { } } -static void +static int transmitter_output_enable(struct weston_output *base) { struct weston_transmitter_output *output = wl_container_of(base, output, base); - + if (!output) { + weston_log("No weston output found\n"); + return -1; + } output->base.assign_planes = transmitter_assign_planes; output->base.set_backlight = NULL; output->base.set_dpms = NULL; output->base.switch_mode = NULL; + + return 0; } int -- cgit 1.2.3-korg