netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
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>,
	'Eilon Greenstein' <eilong@broadcom.com>
Subject: [PATCH 08/15] net: bnx2x: remove unnecessary pci_set_drvdata()
Date: Fri, 18 Oct 2013 09:21:26 +0900	[thread overview]
Message-ID: <00b701cecb97$fbdce0e0$f396a2a0$%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/broadcom/bnx2x/bnx2x_main.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
index e53ff1e..8fd3432 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
@@ -12297,7 +12297,6 @@ err_out_release:
 
 err_out_disable:
 	pci_disable_device(pdev);
-	pci_set_drvdata(pdev, NULL);
 
 err_out:
 	return rc;
@@ -12840,7 +12839,6 @@ init_one_exit:
 		pci_release_regions(pdev);
 
 	pci_disable_device(pdev);
-	pci_set_drvdata(pdev, NULL);
 
 	return rc;
 }
@@ -12923,7 +12921,6 @@ static void __bnx2x_remove(struct pci_dev *pdev,
 		pci_release_regions(pdev);
 
 	pci_disable_device(pdev);
-	pci_set_drvdata(pdev, NULL);
 }
 
 static void bnx2x_remove_one(struct pci_dev *pdev)
-- 
1.7.10.4

  parent reply	other threads:[~2013-10-18  0:22 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 ` Jingoo Han [this message]
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 ` [PATCH 11/15] net: cxgb4: " Jingoo Han
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='00b701cecb97$fbdce0e0$f396a2a0$%han@samsung.com' \
    --to=jg1.han@samsung.com \
    --cc=davem@davemloft.net \
    --cc=eilong@broadcom.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).