Browse Source

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>
Dan Carpenter 13 years ago
parent
commit
7bc1dc7174
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/video/intelfb/intelfbdrv.c

+ 0 - 1
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;