staging: xgifb: clean up xgifb_remove()

Delete redudant comments, blank lines and a redundant semicolon.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Aaro Koskinen 2011-02-17 23:29:16 +02:00 committed by Greg Kroah-Hartman
parent 5c0ef2ac36
commit 45dcfaf150
1 changed files with 1 additions and 6 deletions

View File

@ -3428,8 +3428,6 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
static void __devexit xgifb_remove(struct pci_dev *pdev) static void __devexit xgifb_remove(struct pci_dev *pdev)
{ {
/* Unregister the framebuffer */
/* if (xgi_video_info.registered) { */
unregister_framebuffer(fb_info); unregister_framebuffer(fb_info);
iounmap(xgi_video_info.mmio_vbase); iounmap(xgi_video_info.mmio_vbase);
iounmap(xgi_video_info.video_vbase); iounmap(xgi_video_info.video_vbase);
@ -3438,11 +3436,8 @@ static void __devexit xgifb_remove(struct pci_dev *pdev)
xgi_video_info.video_size); xgi_video_info.video_size);
vfree(XGIhw_ext.pjVirtualRomBase); vfree(XGIhw_ext.pjVirtualRomBase);
framebuffer_release(fb_info); framebuffer_release(fb_info);
/* } */
pci_set_drvdata(pdev, NULL); pci_set_drvdata(pdev, NULL);
}
};
static struct pci_driver xgifb_driver = { static struct pci_driver xgifb_driver = {
.name = "xgifb", .name = "xgifb",