summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/geode
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2014-12-31 12:25:38 +0530
committerTomi Valkeinen <tomi.valkeinen@ti.com>2015-01-13 12:52:43 +0200
commit77a7f1837a9c6f9cfb6ce0d5b166e1f1f7b117b3 (patch)
treeeef28416968f48316387bbbad75e7f5605f9d004 /drivers/video/fbdev/geode
parenta8fc91afab2f6bc50ce5b5be86dd7fc4af159c70 (diff)
downloadtalos-op-linux-77a7f1837a9c6f9cfb6ce0d5b166e1f1f7b117b3.tar.gz
talos-op-linux-77a7f1837a9c6f9cfb6ce0d5b166e1f1f7b117b3.zip
fbdev: geocode: remove unneeded NULL check
the check for info is not required as we are checking it immediately after gx1fb_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>
Diffstat (limited to 'drivers/video/fbdev/geode')
-rw-r--r--drivers/video/fbdev/geode/gx1fb_core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/video/fbdev/geode/gx1fb_core.c b/drivers/video/fbdev/geode/gx1fb_core.c
index 2794ba11f332..9bee8744c438 100644
--- a/drivers/video/fbdev/geode/gx1fb_core.c
+++ b/drivers/video/fbdev/geode/gx1fb_core.c
@@ -374,10 +374,8 @@ static int gx1fb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
release_mem_region(gx1_gx_base() + 0x8300, 0x100);
}
- if (info) {
- fb_dealloc_cmap(&info->cmap);
- framebuffer_release(info);
- }
+ fb_dealloc_cmap(&info->cmap);
+ framebuffer_release(info);
return ret;
}
OpenPOWER on IntegriCloud