From d638525a9646c67b25e8063190a9c2d61f9827a9 Mon Sep 17 00:00:00 2001 From: qinzhiben Date: Wed, 8 Nov 2023 10:30:24 +0800 Subject: [PATCH] Delete expressions with the same left and right sides as '&&' --- src/ArchMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ArchMap.cpp b/src/ArchMap.cpp index 8d91551a..5ec15abf 100644 --- a/src/ArchMap.cpp +++ b/src/ArchMap.cpp @@ -250,7 +250,7 @@ int ai(RCore *core, std::string cpu, int query) { std::string SleighIdFromSleighAsmConfig(RCore *core, const char *cpu, int bits, bool bigendian, const vector &langs) { const char *colon = strchr (cpu, ':'); - if (colon != nullptr && colon[1] != '\0' && colon[1] != '\0') { + if (colon != nullptr && colon[1] != '\0') { // complete id specified return cpu; }