From 42c426af48a8dccedba7839e35b2fb8d34f76e34 Mon Sep 17 00:00:00 2001 From: nosklo Date: Fri, 19 Jan 2018 16:52:54 -0200 Subject: [PATCH] uint can't be < 0 Remove useless comparison that tests if uint variable is < 0. --- DS4Windows/DS4Control/UdpServer.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/DS4Windows/DS4Control/UdpServer.cs b/DS4Windows/DS4Control/UdpServer.cs index 242f459099..2ce4b904c3 100644 --- a/DS4Windows/DS4Control/UdpServer.cs +++ b/DS4Windows/DS4Control/UdpServer.cs @@ -194,9 +194,6 @@ private void ProcessIncoming(byte[] localMsg, IPEndPoint clientEP) uint packetSize = BitConverter.ToUInt16(localMsg, currIdx); currIdx += 2; - if (packetSize < 0) - return; - packetSize += 16; //size of header if (packetSize > localMsg.Length) return;