diff --git a/cros_gralloc/cros_gralloc_driver.cc b/cros_gralloc/cros_gralloc_driver.cc index 7581fb6..9af64a7 100644 --- a/cros_gralloc/cros_gralloc_driver.cc +++ b/cros_gralloc/cros_gralloc_driver.cc @@ -325,13 +325,7 @@ int32_t cros_gralloc_driver::get_backing_store(buffer_handle_t handle, uint64_t return -EINVAL; } - auto buffer = get_buffer(hnd); - if (!buffer) { - cros_gralloc_error("Invalid Reference."); - return -EINVAL; - } - - *out_store = static_cast(buffer->get_id()); + *out_store = static_cast(hnd->id); return 0; }