OSDN Git Service

Remove error when trying to get a global buffer that doesn't exist
authorHendrik Wagenaar <hendrikw@google.com>
Wed, 31 May 2017 22:04:04 +0000 (15:04 -0700)
committerHendrik Wagenaar <hendrikw@google.com>
Wed, 31 May 2017 22:04:04 +0000 (15:04 -0700)
* Calling Get on a missing buffer isn't system error,
  The error should be handled by the caller

Bug: None
Test: None
Change-Id: I0a49a4d104e9db025f4cfd213182f565d141bbf8

libs/vr/libdvr/dvr_surface.cpp

index 2affacd..0f4749d 100644 (file)
@@ -171,8 +171,6 @@ int dvrGetGlobalBuffer(DvrGlobalBufferKey key, DvrBuffer** out_buffer) {
 
   auto status = client->GetGlobalBuffer(key);
   if (!status) {
-    ALOGE("dvrGetGlobalBuffer: Failed to find named buffer key=%d: %s", key,
-          status.GetErrorMessage().c_str());
     return -status.error();
   }
   *out_buffer = CreateDvrBufferFromIonBuffer(status.take());