From ed9ebd8bdc8464eea10bc700796de7b75aa0858f Mon Sep 17 00:00:00 2001 From: Bruno de Lacheisserie Date: Thu, 1 Aug 2024 21:44:05 +0200 Subject: [PATCH] MNEALogger : remove useless unsigned comparison to zero --- Common/Source/Logger/NMEAlogger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/Source/Logger/NMEAlogger.cpp b/Common/Source/Logger/NMEAlogger.cpp index c407226a3..88da8a1cb 100755 --- a/Common/Source/Logger/NMEAlogger.cpp +++ b/Common/Source/Logger/NMEAlogger.cpp @@ -65,7 +65,7 @@ static bool wasWriting=false; { if( iLastPort != PortNum) /* more than one port active (another than the previous) */ { - if((PortNum >= 0) && (PortNum < NUMDEV)) + if(PortNum < NUMDEV) { if(logfsingle[PortNum] == NULL) {