提交 7bc1dc71 编写于 作者: D Dan Carpenter 提交者: Florian Tobias Schandinat

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: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
上级 64a9de8f
...@@ -529,7 +529,6 @@ static int __devinit intelfb_pci_register(struct pci_dev *pdev, ...@@ -529,7 +529,6 @@ static int __devinit intelfb_pci_register(struct pci_dev *pdev,
if (fb_alloc_cmap(&info->cmap, 256, 1) < 0) { if (fb_alloc_cmap(&info->cmap, 256, 1) < 0) {
ERR_MSG("Could not allocate cmap for intelfb_info.\n"); ERR_MSG("Could not allocate cmap for intelfb_info.\n");
goto err_out_cmap; goto err_out_cmap;
return -ENODEV;
} }
dinfo = info->par; dinfo = info->par;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册