diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2016-02-25 11:08:20 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-11 22:09:09 -0800 |
commit | b7a22f8d0a84c21ad0458c386f2fb2986702fa5d (patch) | |
tree | 9a332ee567c69191fe22cd88df3a1b0df989da08 /drivers/staging/rts5208 | |
parent | d1af6476e6f97f412db55c98b0a05b7a13cbd855 (diff) | |
download | linux-b7a22f8d0a84c21ad0458c386f2fb2986702fa5d.tar.bz2 |
staging: rts5208: 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/rts5208')
-rw-r--r-- | drivers/staging/rts5208/rtsx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c index 5dfcdfb28307..d23f85344722 100644 --- a/drivers/staging/rts5208/rtsx.c +++ b/drivers/staging/rts5208/rtsx.c @@ -1009,8 +1009,6 @@ static void rtsx_remove(struct pci_dev *pci) quiesce_and_remove_host(dev); release_everything(dev); - - pci_set_drvdata(pci, NULL); } /* PCI IDs */ |