diff --git a/Common/LoongArchCPUDetect.cpp b/Common/LoongArchCPUDetect.cpp index 0382b98a38..0e4d7e6909 100644 --- a/Common/LoongArchCPUDetect.cpp +++ b/Common/LoongArchCPUDetect.cpp @@ -94,15 +94,11 @@ int LoongArchCPUInfoParser::TotalLogicalCount() { int low, high, found; std::getline(presentFile, line); found = sscanf(line.c_str(), "%d-%d", &low, &high); - if (found == 1){ - return 1; - } if (found == 2){ return high - low + 1; } - }else{ - return 1; } + return 1; } #endif