[Flang][OpenMP][NFC] Remove usage of else after return
authorKiran Chandramohan <kiran.chandramohan@arm.com>
Sun, 12 Feb 2023 21:59:05 +0000 (21:59 +0000)
committerKiran Chandramohan <kiran.chandramohan@arm.com>
Sun, 12 Feb 2023 22:09:26 +0000 (22:09 +0000)
flang/lib/Lower/OpenMP.cpp

index 0efe3c7..38af620 100644 (file)
@@ -997,8 +997,7 @@ static int getOperationIdentity(llvm::StringRef reductionOpName,
                                 mlir::Location loc) {
   if (reductionOpName.contains("add"))
     return 0;
-  else if (reductionOpName.contains("multiply") ||
-           reductionOpName.contains("and"))
+  if (reductionOpName.contains("multiply") || reductionOpName.contains("and"))
     return 1;
   TODO(loc, "Reduction of some intrinsic operators is not supported");
 }