From: Jingoo Han <jg1.han@samsung.com>
To: "'David S. Miller'" <davem@davemloft.net>
Cc: netdev@vger.kernel.org, 'Jingoo Han' <jg1.han@samsung.com>,
'Dimitris Michailidis' <dm@chelsio.com>
Subject: [PATCH 11/15] net: cxgb4: remove unnecessary pci_set_drvdata()
Date: Fri, 18 Oct 2013 09:23:00 +0900 [thread overview]
Message-ID: <00ba01cecb98$3397ffb0$9ac7ff10$%han@samsung.com> (raw)
In-Reply-To: <00ae01cecb97$44d45770$ce7d0650$%han@samsung.com>
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 <jg1.han@samsung.com>
---
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
index 85d0cda..8b929ee 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
@@ -6075,7 +6075,6 @@ sriov:
pci_disable_device(pdev);
out_release_regions:
pci_release_regions(pdev);
- pci_set_drvdata(pdev, NULL);
return err;
}
@@ -6123,7 +6122,6 @@ static void remove_one(struct pci_dev *pdev)
pci_disable_pcie_error_reporting(pdev);
pci_disable_device(pdev);
pci_release_regions(pdev);
- pci_set_drvdata(pdev, NULL);
} else
pci_release_regions(pdev);
}
--
1.7.10.4
next prev parent reply other threads:[~2013-10-18 0:23 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-18 0:16 [PATCH 00/15] net: ethernet: remove unnecessary pci_set_drvdata() part 1 Jingoo Han
2013-10-18 0:17 ` [PATCH 01/15] net: typhoon: remove unnecessary pci_set_drvdata() Jingoo Han
2013-10-18 0:18 ` [PATCH 02/15] net: 8390: " Jingoo Han
2013-10-18 0:18 ` [PATCH 03/15] net: starfire: " Jingoo Han
2013-10-18 0:19 ` [PATCH 04/15] net: pcnet32: " Jingoo Han
2013-10-18 0:19 ` [PATCH 05/15] net: amd8111e: " Jingoo Han
2013-10-18 0:20 ` [PATCH 06/15] net: alx: " Jingoo Han
2013-10-18 0:21 ` [PATCH 07/15] net: bnx2: " Jingoo Han
2013-10-18 0:21 ` [PATCH 08/15] net: bnx2x: " Jingoo Han
2013-10-18 0:21 ` [PATCH 09/15] net: tg3: " Jingoo Han
2013-10-18 0:22 ` [PATCH 10/15] net: bna: " Jingoo Han
2013-10-18 0:23 ` Jingoo Han [this message]
2013-10-18 0:23 ` [PATCH 12/15] net: cxgb3: " Jingoo Han
2013-10-18 0:24 ` [PATCH 13/15] net: cxgb2: " Jingoo Han
2013-10-18 0:24 ` [PATCH 14/15] net: cxgb4vf: " Jingoo Han
2013-10-18 0:25 ` [PATCH 15/15] net: enic: " Jingoo Han
2013-10-18 16:00 ` Neel Patel (neepatel)
2013-10-21 14:02 ` Sujith Sankar (ssujith)
2013-10-18 4:04 ` [PATCH 00/15] net: ethernet: remove unnecessary pci_set_drvdata() part 1 David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='00ba01cecb98$3397ffb0$9ac7ff10$%han@samsung.com' \
--to=jg1.han@samsung.com \
--cc=davem@davemloft.net \
--cc=dm@chelsio.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).