summaryrefslogtreecommitdiffstats
path: root/drivers/staging/unisys
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla2016-02-25 06:37:59 +0100
committerGreg Kroah-Hartman2016-02-26 07:41:48 +0100
commit8247bcb998f2824f89da2eb5ec21f3e7d4fa66a5 (patch)
treef949c7fb2cb6336c2ef55c58f573b7f9abd7256f /drivers/staging/unisys
parentstaging: unisys: iochannel.h add_phys_info needs u64 pfn (diff)
downloadkernel-qcow2-linux-8247bcb998f2824f89da2eb5ec21f3e7d4fa66a5.tar.gz
kernel-qcow2-linux-8247bcb998f2824f89da2eb5ec21f3e7d4fa66a5.tar.xz
kernel-qcow2-linux-8247bcb998f2824f89da2eb5ec21f3e7d4fa66a5.zip
staging: unisys: visorbus: Remove unnecessary dev_set_drvdata()
Unnecessary dev_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 device *dev; @@ - dev_set_drvdata(dev, 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/unisys')
-rw-r--r--drivers/staging/unisys/visorbus/visorbus_main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c
index 4f7d74326e59..9e048e9a40f0 100644
--- a/drivers/staging/unisys/visorbus/visorbus_main.c
+++ b/drivers/staging/unisys/visorbus/visorbus_main.c
@@ -221,7 +221,6 @@ visorbus_release_busdevice(struct device *xdev)
{
struct visor_device *dev = dev_get_drvdata(xdev);
- dev_set_drvdata(xdev, NULL);
kfree(dev);
}