summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-01-27 13:58:33 +0100
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-01-28 20:39:17 +0100
commit7bc1dc7174d06104fde069a3b5aef1c5b902a5c9 (patch)
tree633e3ee07d71a3cc9b958de7793e563f991be1ba /drivers/video
parentMerge branch 'for-3.3-rc' of git://gitorious.org/linux-omap-dss2/linux into f... (diff)
downloadlinux-7bc1dc7174d06104fde069a3b5aef1c5b902a5c9.tar.xz
linux-7bc1dc7174d06104fde069a3b5aef1c5b902a5c9.zip
intelfb: remove some dead code
The goto on the line before means the return is unreachable. The goto also returns -ENODEV so no changes are needed there. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/intelfb/intelfbdrv.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c
index 5ba399991050..a5947c94145f 100644
--- a/drivers/video/intelfb/intelfbdrv.c
+++ b/drivers/video/intelfb/intelfbdrv.c
@@ -529,7 +529,6 @@ static int __devinit intelfb_pci_register(struct pci_dev *pdev,
if (fb_alloc_cmap(&info->cmap, 256, 1) < 0) {
ERR_MSG("Could not allocate cmap for intelfb_info.\n");
goto err_out_cmap;
- return -ENODEV;
}
dinfo = info->par;