[llvm-branch-commits] [openmp] 30fbe73 - [OpenMP][NFC] Remove else after return

Johannes Doerfert via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Nov 28 22:23:34 PST 2023


Author: Johannes Doerfert
Date: 2023-11-27T16:02:33-08:00
New Revision: 30fbe73ba9c726acbe0658e4ea98f328724482e5

URL: https://github.com/llvm/llvm-project/commit/30fbe73ba9c726acbe0658e4ea98f328724482e5
DIFF: https://github.com/llvm/llvm-project/commit/30fbe73ba9c726acbe0658e4ea98f328724482e5.diff

LOG: [OpenMP][NFC] Remove else after return

Added: 
    

Modified: 
    openmp/libomptarget/src/interface.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/src/interface.cpp b/openmp/libomptarget/src/interface.cpp
index ae9d1c597e15940..79f38ed1a43437f 100644
--- a/openmp/libomptarget/src/interface.cpp
+++ b/openmp/libomptarget/src/interface.cpp
@@ -319,9 +319,8 @@ EXTERN int __tgt_target_kernel(ident_t *Loc, int64_t DeviceId, int32_t NumTeams,
   if (KernelArgs->Flags.NoWait)
     return targetKernel<TaskAsyncInfoWrapperTy>(
         Loc, DeviceId, NumTeams, ThreadLimit, HostPtr, KernelArgs);
-  else
-    return targetKernel<AsyncInfoTy>(Loc, DeviceId, NumTeams, ThreadLimit,
-                                     HostPtr, KernelArgs);
+  return targetKernel<AsyncInfoTy>(Loc, DeviceId, NumTeams, ThreadLimit,
+                                   HostPtr, KernelArgs);
 }
 
 /// Activates the record replay mechanism.


        


More information about the llvm-branch-commits mailing list