[Openmp-commits] [openmp] 98441fc - [NFC][OpenMP] Remove unused label

Vitaly Buka via Openmp-commits openmp-commits at lists.llvm.org
Thu Nov 17 23:35:26 PST 2022


Author: Vitaly Buka
Date: 2022-11-17T23:35:08-08:00
New Revision: 98441fc9e4a705c91f6f524fc3965e2e0516de3a

URL: https://github.com/llvm/llvm-project/commit/98441fc9e4a705c91f6f524fc3965e2e0516de3a
DIFF: https://github.com/llvm/llvm-project/commit/98441fc9e4a705c91f6f524fc3965e2e0516de3a.diff

LOG: [NFC][OpenMP] Remove unused label

Added: 
    

Modified: 
    openmp/libomptarget/plugins/amdgpu/impl/impl.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/plugins/amdgpu/impl/impl.cpp b/openmp/libomptarget/plugins/amdgpu/impl/impl.cpp
index d41ca9713623d..ced75fa6c1cef 100644
--- a/openmp/libomptarget/plugins/amdgpu/impl/impl.cpp
+++ b/openmp/libomptarget/plugins/amdgpu/impl/impl.cpp
@@ -63,8 +63,6 @@ static hsa_status_t locking_async_memcpy(enum CopyDirection direction,
   case D2H:
     err = invoke_hsa_copy(signal, lockedPtr, agent, src, size);
     break;
-  default:
-    err = HSA_STATUS_ERROR; // fall into unlock before returning
   }
 
   if (err != HSA_STATUS_SUCCESS) {


        


More information about the Openmp-commits mailing list