diff --git a/client/Wayland/wlf_channels.c b/client/Wayland/wlf_channels.c index 02e718837..c8a4c9d9e 100644 --- a/client/Wayland/wlf_channels.c +++ b/client/Wayland/wlf_channels.c @@ -39,9 +39,6 @@ static UINT wlf_encomsp_participant_created(EncomspClientContext* context, static void wlf_encomsp_init(wlfContext* wlf, EncomspClientContext* encomsp) { - if (!wlf || !encomsp) - return; - wlf->encomsp = encomsp; encomsp->custom = (void*) wlf; encomsp->ParticipantCreated = wlf_encomsp_participant_created; @@ -66,9 +63,6 @@ void wlf_OnChannelConnectedEventHandler(void* context, wlfContext* wlf = (wlfContext*) context; rdpSettings* settings; - if (!wlf || !e || !wlf->context.settings) - return; - settings = wlf->context.settings; if (strcmp(e->name, RDPEI_DVC_CHANNEL_NAME) == 0) @@ -101,9 +95,6 @@ void wlf_OnChannelDisconnectedEventHandler(void* context, wlfContext* wlf = (wlfContext*) context; rdpSettings* settings; - if (!wlf || !e || !wlf->context.settings) - return; - settings = wlf->context.settings; if (strcmp(e->name, RDPEI_DVC_CHANNEL_NAME) == 0)