changeset 11609:103795ab699d

gpu.cpp: fix warning: not all control paths return a value
author Andreas Woess <andreas.woess@jku.at>
date Thu, 12 Sep 2013 12:56:05 +0200
parents b5d2a23b7f6b
children 5f532ea846fb
files src/share/vm/runtime/gpu.cpp
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/gpu.cpp	Thu Sep 12 11:18:03 2013 +0200
+++ b/src/share/vm/runtime/gpu.cpp	Thu Sep 12 12:56:05 2013 +0200
@@ -55,10 +55,9 @@
     if (gpu::get_target_il_type() == gpu::PTX) {
       return (gpu::Ptx::generate_kernel(code, code_len, name));
     }
-  } else {
     // Add kernel generation functionality of other GPUs here
-    return NULL;
   }
+  return NULL;
 }
 
 bool gpu::execute_kernel(address kernel, PTXKernelArguments & ptxka, JavaValue& ret) {
@@ -66,9 +65,8 @@
     if (gpu::get_target_il_type() == gpu::PTX) {
       return (gpu::Ptx::execute_kernel(kernel, ptxka, ret));
     }
-  } else {
     // Add kernel execution functionality of other GPUs here
-    return false;
   }
+  return false;
 }