staging: sm7xxfb: Remove redundant pci_set_drvdata
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 20 Sep 2013 10:11:37 +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/sm7xxfb/sm7xxfb.c

index 8add64b1cb0940f69d783083588d65994c5c0e5c..5c857618d9058d5fec0d8b55a6573802231bcf6d 100644 (file)
@@ -933,7 +933,6 @@ static void smtcfb_pci_remove(struct pci_dev *pdev)
        struct smtcfb_info *sfb;
 
        sfb = pci_get_drvdata(pdev);
-       pci_set_drvdata(pdev, NULL);
        smtc_unmap_smem(sfb);
        smtc_unmap_mmio(sfb);
        unregister_framebuffer(&sfb->fb);