From: Jingoo Han Date: Thu, 12 Sep 2013 06:46:39 +0000 (+0900) Subject: hwmon: (k10temp) remove unnecessary pci_set_drvdata() X-Git-Tag: firefly_0821_release~176^2~5302^2 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=0b77f766f3ef9875e2bb0035c9b89b4f9469b78d;p=firefly-linux-kernel-4.4.55.git hwmon: (k10temp) remove unnecessary pci_set_drvdata() The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han Acked-by: Clemens Ladisch Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index e633856370cf..d65f3fd895dd 100644 --- a/drivers/hwmon/k10temp.c +++ b/drivers/hwmon/k10temp.c @@ -202,7 +202,6 @@ static void k10temp_remove(struct pci_dev *pdev) &sensor_dev_attr_temp1_crit.dev_attr); device_remove_file(&pdev->dev, &sensor_dev_attr_temp1_crit_hyst.dev_attr); - pci_set_drvdata(pdev, NULL); } static DEFINE_PCI_DEVICE_TABLE(k10temp_id_table) = {