]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: xgifb: Remove redundant pci_set_drvdata
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 20 Sep 2013 10:11:39 +0000 (15:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Sep 2013 23:45:19 +0000 (16:45 -0700)
Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/XGI_main_26.c

index 3b3e17d3f6f58a057cc6c2b014574044f01688a3..b3ff603e6225dec31b2c24cef8832e06365ffcf4 100644 (file)
@@ -2070,7 +2070,6 @@ static void xgifb_remove(struct pci_dev *pdev)
        release_mem_region(xgifb_info->video_base, xgifb_info->video_size);
        pci_disable_device(pdev);
        framebuffer_release(fb_info);
-       pci_set_drvdata(pdev, NULL);
 }
 
 static struct pci_driver xgifb_driver = {