summaryrefslogtreecommitdiffstats
path: root/drivers/staging/sm750fb
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla2016-02-25 06:37:37 +0100
committerGreg Kroah-Hartman2016-03-12 07:09:09 +0100
commitfad2564eaa350368d95be2b7f0c832541dc9d09a (patch)
tree0c564df800a06b244472422bcf9190d9cbc01e72 /drivers/staging/sm750fb
parentstaging: sm750fb: Remove parentheses from return arguments (diff)
downloadkernel-qcow2-linux-fad2564eaa350368d95be2b7f0c832541dc9d09a.tar.gz
kernel-qcow2-linux-fad2564eaa350368d95be2b7f0c832541dc9d09a.tar.xz
kernel-qcow2-linux-fad2564eaa350368d95be2b7f0c832541dc9d09a.zip
staging: sm750fb: Remove unnecessary pci_set_drvdata()
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: //<smpl> @@ struct pci_dev *pci; @@ - pci_set_drvdata(pci, NULL); //</smpl> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb')
-rw-r--r--drivers/staging/sm750fb/sm750.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c
index 59c74557a0a7..aae3c7538d68 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)
iounmap(sm750_dev->pvMem);
kfree(g_settings);
kfree(sm750_dev);
- pci_set_drvdata(pdev, NULL);
}
static int __init lynxfb_setup(char *options)