staging: sm750fb: Remove unnecessary pci_set_drvdata()

Author: Amitoj Kaur Chawla <>

Unnecessary pci_set_drvdata() has been removed since the driver
core clears the driver data to NULL after device release or on
probe failure. There is no need to manually clear the device
driver data to NULL.

The Coccinelle semantic patch used to make this change is as follows:
struct pci_dev *pci;
- pci_set_drvdata(pci, NULL);

Signed-off-by: Amitoj Kaur Chawla 
Signed-off-by: Greg Kroah-Hartman 
 drivers/staging/sm750fb/sm750.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c
index 59c7455..aae3c75 100644
--- a/drivers/staging/sm750fb/sm750.c
+++ b/drivers/staging/sm750fb/sm750.c
@@ -1135,7 +1135,6 @@ static void lynxfb_pci_remove(struct pci_dev *pdev)
-	pci_set_drvdata(pdev, NULL);
 static int __init lynxfb_setup(char *options)