fbdev: geocode: remove unneeded NULL check
the check for info is not required as we are checking it immediately after gxfb_init_fbinfo() and lxfb_init_fbinfo() and returnig -ENOMEM if it is NULL. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
96699b4004
commit
9cb13ba435
drivers/video/fbdev/geode
@ -444,10 +444,8 @@ static int gxfb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
|||||||
pci_release_region(pdev, 1);
|
pci_release_region(pdev, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info) {
|
|
||||||
fb_dealloc_cmap(&info->cmap);
|
fb_dealloc_cmap(&info->cmap);
|
||||||
framebuffer_release(info);
|
framebuffer_release(info);
|
||||||
}
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -577,10 +577,8 @@ err:
|
|||||||
pci_release_region(pdev, 3);
|
pci_release_region(pdev, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info) {
|
|
||||||
fb_dealloc_cmap(&info->cmap);
|
fb_dealloc_cmap(&info->cmap);
|
||||||
framebuffer_release(info);
|
framebuffer_release(info);
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user