OSDN Git Service

remove seemed useless gralloc_open() call in fb_device_open()
authorsuyi Yuan <yuan.suyi@gmail.com>
Thu, 15 Mar 2012 07:27:02 +0000 (15:27 +0800)
committersuyi Yuan <yuan.suyi@gmail.com>
Thu, 15 Mar 2012 07:27:02 +0000 (15:27 +0800)
Change-Id: I520e460bd558934c71042b5a4fdb03b3935ad720
Signed-off-by: suyi Yuan <yuan.suyi@gmail.com>
modules/gralloc/framebuffer.cpp

index f908976..52c838b 100644 (file)
@@ -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));