From e14ba2018fbb6bcdfecba4458888beecebe16ecd Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Fri, 4 Jan 2019 20:55:28 +0500 Subject: [PATCH] remove identical code, found by coverity --- libfreerdp/core/settings.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libfreerdp/core/settings.c b/libfreerdp/core/settings.c index 59bbaa7..54dfe20 100644 --- a/libfreerdp/core/settings.c +++ b/libfreerdp/core/settings.c @@ -370,12 +370,7 @@ rdpSettings* freerdp_settings_new(DWORD flags) settings->CompressionEnabled = TRUE; settings->LogonNotify = TRUE; settings->BrushSupportLevel = BRUSH_COLOR_FULL; - - if (settings->ServerMode) - settings->CompressionLevel = PACKET_COMPR_TYPE_RDP61; - else - settings->CompressionLevel = PACKET_COMPR_TYPE_RDP61; - + settings->CompressionLevel = PACKET_COMPR_TYPE_RDP61; settings->Authentication = TRUE; settings->AuthenticationOnly = FALSE; settings->CredentialsFromStdin = FALSE; -- 2.7.4