From 4dcf59c8f469256cd68a5ddaef93a7e27644cc52 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Tue, 21 May 2024 21:04:16 -0700 Subject: [PATCH] remove some unnecessary code --- xrdp/xrdp_encoder_x264.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/xrdp/xrdp_encoder_x264.c b/xrdp/xrdp_encoder_x264.c index 6fb3981cc..81fd71798 100644 --- a/xrdp/xrdp_encoder_x264.c +++ b/xrdp/xrdp_encoder_x264.c @@ -53,15 +53,8 @@ struct x264_global void * xrdp_encoder_x264_create(void) { - struct x264_global *xg; - LOG_DEVEL(LOG_LEVEL_TRACE, "xrdp_encoder_x264_create:"); - xg = g_new0(struct x264_global, 1); - if (xg == NULL) - { - return NULL; - } - return xg; + return g_new0(struct x264_global, 1); } /*****************************************************************************/