summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-01-27 15:58:33 +0300
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-01-28 19:39:17 +0000
commit7bc1dc7174d06104fde069a3b5aef1c5b902a5c9 (patch)
tree633e3ee07d71a3cc9b958de7793e563f991be1ba /drivers/video
parent64a9de8f07bf9ca909561c50d9f9e63bb7221b91 (diff)
downloadop-kernel-dev-7bc1dc7174d06104fde069a3b5aef1c5b902a5c9.zip
op-kernel-dev-7bc1dc7174d06104fde069a3b5aef1c5b902a5c9.tar.gz
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 5ba3999..a5947c9 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;
OpenPOWER on IntegriCloud