summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-06-12 13:57:02 -0700
committerandroid code review <noreply-gerritcodereview@google.com>2012-06-12 13:57:03 -0700
commit1fbbb08ddda4321ccdb05345658044c1f0235997 (patch)
tree575e2550ea8ef3c76d15d5ffc14f49e8dd4ff53a
parentf1d76bb7446961be2221fa8a597d60643b7803be (diff)
parent539c9936aec9cdd75054e24e07e7decdd1d4de39 (diff)
downloadlibhardware-tools_r20.tar.gz
Merge "remove seemed useless gralloc_open() call in fb_device_open()"android-sdk-adt_r20tools_r20ics-plus-aosp
-rw-r--r--modules/gralloc/framebuffer.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/gralloc/framebuffer.cpp b/modules/gralloc/framebuffer.cpp
index f9089768..52c838b1 100644
--- a/modules/gralloc/framebuffer.cpp
+++ b/modules/gralloc/framebuffer.cpp
@@ -312,11 +312,6 @@ int fb_device_open(hw_module_t const* module, const char* name,
{
int status = -EINVAL;
if (!strcmp(name, GRALLOC_HARDWARE_FB0)) {
- alloc_device_t* gralloc_device;
- status = gralloc_open(module, &gralloc_device);
- if (status < 0)
- return status;
-
/* initialize our state here */
fb_context_t *dev = (fb_context_t*)malloc(sizeof(*dev));
memset(dev, 0, sizeof(*dev));