Skip to content

Commit

Permalink
staging: xgifb: clean up xgifb_remove()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Feb 18, 2011
1 parent 5c0ef2a commit 45dcfaf
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -3428,8 +3428,6 @@ static int __devinit xgifb_probe(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);
iounmap(xgi_video_info.mmio_vbase);
iounmap(xgi_video_info.video_vbase);
Expand All @@ -3438,11 +3436,8 @@ static void __devexit xgifb_remove(struct pci_dev *pdev)
xgi_video_info.video_size);
vfree(XGIhw_ext.pjVirtualRomBase);
framebuffer_release(fb_info);
/* } */

pci_set_drvdata(pdev, NULL);

};
}

static struct pci_driver xgifb_driver = {
.name = "xgifb",
Expand Down

0 comments on commit 45dcfaf

Please sign in to comment.