From 7676b29176d85c1d268af158b8cd728d565d9e9b Mon Sep 17 00:00:00 2001 From: "zihao.jiang" Date: Sat, 29 Oct 2016 13:18:17 +0800 Subject: [PATCH] cleanup unnecessary code per comments --- libfreerdp/core/peer.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libfreerdp/core/peer.c b/libfreerdp/core/peer.c index b845c65..1b8e75e 100644 --- a/libfreerdp/core/peer.c +++ b/libfreerdp/core/peer.c @@ -258,13 +258,7 @@ static HANDLE freerdp_peer_get_event_handle(freerdp_peer* client) static DWORD freerdp_peer_get_event_handles(freerdp_peer* client, HANDLE* events, DWORD count) { - DWORD nCount = 0; - nCount += transport_get_event_handles(client->context->rdp->transport, events, count); - - if (nCount == 0) - return 0; - - return nCount; + return transport_get_event_handles(client->context->rdp->transport, events, count); } static BOOL freerdp_peer_check_fds(freerdp_peer* peer) -- 2.7.4