Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02eb261d authored by Sachin Kamat's avatar Sachin Kamat Committed by Greg Kroah-Hartman
Browse files

staging: sm7xxfb: Remove redundant pci_set_drvdata



Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 477c81f0
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -933,7 +933,6 @@ static void smtcfb_pci_remove(struct pci_dev *pdev)
	struct smtcfb_info *sfb;
	struct smtcfb_info *sfb;


	sfb = pci_get_drvdata(pdev);
	sfb = pci_get_drvdata(pdev);
	pci_set_drvdata(pdev, NULL);
	smtc_unmap_smem(sfb);
	smtc_unmap_smem(sfb);
	smtc_unmap_mmio(sfb);
	smtc_unmap_mmio(sfb);
	unregister_framebuffer(&sfb->fb);
	unregister_framebuffer(&sfb->fb);