Merge "Revert "Fix return error.""
diff --git a/libs/vr/libbufferhubqueue/buffer_hub_queue_client.cpp b/libs/vr/libbufferhubqueue/buffer_hub_queue_client.cpp
index e12b5a9..1f2c517 100644
--- a/libs/vr/libbufferhubqueue/buffer_hub_queue_client.cpp
+++ b/libs/vr/libbufferhubqueue/buffer_hub_queue_client.cpp
@@ -484,7 +484,7 @@
   if (buffer_slots.size() == 0) {
     // Error out if no buffer is allocated and improted.
     ALOGE_IF(TRACE, "ProducerQueue::AllocateBuffers: no buffer allocated.");
-    return ErrorStatus(ENOMEM);
+    ErrorStatus(ENOMEM);
   }
 
   return {std::move(buffer_slots)};
@@ -505,7 +505,7 @@
 
   if (status.get().size() == 0) {
     ALOGE_IF(TRACE, "ProducerQueue::AllocateBuffer: no buffer allocated.");
-    return ErrorStatus(ENOMEM);
+    ErrorStatus(ENOMEM);
   }
 
   return {status.get()[0]};