am 1fbbb08d: Merge "remove seemed useless gralloc_open() call in fb_device_open()"

* commit '1fbbb08ddda4321ccdb05345658044c1f0235997':
  remove seemed useless gralloc_open() call in fb_device_open()
This commit is contained in:
Jean-Baptiste Queru
2012-06-12 15:16:18 -07:00
committed by Android Git Automerger

View 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));