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>,
	'Nithin Nayak Sujir' <nsujir@broadcom.com>,
	'Michael Chan' <mchan@broadcom.com>
Subject: [PATCH 09/15] net: tg3: remove unnecessary pci_set_drvdata()
Date: Fri, 18 Oct 2013 09:21:54 +0900	[thread overview]
Message-ID: <00b801cecb98$0c98a180$25c9e480$%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/tg3.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c
index 498569e..819d87c 100644
--- a/drivers/net/ethernet/broadcom/tg3.c
+++ b/drivers/net/ethernet/broadcom/tg3.c
@@ -17701,7 +17701,6 @@ err_out_free_res:
 err_out_disable_pdev:
 	if (pci_is_enabled(pdev))
 		pci_disable_device(pdev);
-	pci_set_drvdata(pdev, NULL);
 	return err;
 }
 
@@ -17733,7 +17732,6 @@ static void tg3_remove_one(struct pci_dev *pdev)
 		free_netdev(dev);
 		pci_release_regions(pdev);
 		pci_disable_device(pdev);
-		pci_set_drvdata(pdev, NULL);
 	}
 }
 
-- 
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 ` [PATCH 08/15] net: bnx2x: " Jingoo Han
2013-10-18  0:21 ` Jingoo Han [this message]
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='00b801cecb98$0c98a180$25c9e480$%han@samsung.com' \
    --to=jg1.han@samsung.com \
    --cc=davem@davemloft.net \
    --cc=mchan@broadcom.com \
    --cc=netdev@vger.kernel.org \
    --cc=nsujir@broadcom.com \
    /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).