staging: xgifb: clean up xgifb_remove()
authorAaro Koskinen <aaro.koskinen@iki.fi>
Thu, 17 Feb 2011 21:29:16 +0000 (23:29 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Feb 2011 20:38:18 +0000 (12:38 -0800)
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>
drivers/staging/xgifb/XGI_main_26.c

index f69ff574767e3520f887166d4438438d969cdcce..6e86830cc52dfc5ac465f6628aa586c49ca7aac8 100644 (file)
@@ -3428,8 +3428,6 @@ error:
 
 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);
@@ -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",