public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Jingoo Han <jg1.han@samsung.com>
To: "'John W. Linville'" <linville@tuxdriver.com>
Cc: linux-wireless@vger.kernel.org,
	'Jingoo Han' <jg1.han@samsung.com>,
	'Ivo van Doorn' <IvDoorn@gmail.com>,
	'Gertjan van Wingerde' <gwingerde@gmail.com>,
	'Helmut Schaa' <helmut.schaa@googlemail.com>
Subject: [PATCH 3/3] wireless: rt2x00: remove unnecessary pci_set_drvdata()
Date: Mon, 25 Nov 2013 10:52:33 +0900	[thread overview]
Message-ID: <000801cee981$02414cd0$06c3e670$%han@samsung.com> (raw)
In-Reply-To: <000601cee980$a2d1b0a0$e87511e0$%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/wireless/rt2x00/rt2x00pci.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.c b/drivers/net/wireless/rt2x00/rt2x00pci.c
index 25da20e..af72183 100644
--- a/drivers/net/wireless/rt2x00/rt2x00pci.c
+++ b/drivers/net/wireless/rt2x00/rt2x00pci.c
@@ -156,8 +156,6 @@ exit_release_regions:
 exit_disable_device:
 	pci_disable_device(pci_dev);
 
-	pci_set_drvdata(pci_dev, NULL);
-
 	return retval;
 }
 EXPORT_SYMBOL_GPL(rt2x00pci_probe);
@@ -177,7 +175,6 @@ void rt2x00pci_remove(struct pci_dev *pci_dev)
 	/*
 	 * Free the PCI device data.
 	 */
-	pci_set_drvdata(pci_dev, NULL);
 	pci_disable_device(pci_dev);
 	pci_release_regions(pci_dev);
 }
-- 
1.7.10.4



  parent reply	other threads:[~2013-11-25  1:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-25  1:49 [PATCH 1/3] wireless: ipw2100: remove unnecessary pci_set_drvdata() Jingoo Han
2013-11-25  1:51 ` [PATCH 2/3] wireless: prism54: " Jingoo Han
2013-11-25  1:52 ` Jingoo Han [this message]
2013-11-25 14:15   ` [PATCH 3/3] wireless: rt2x00: " Gertjan van Wingerde
2013-11-26  6:55 ` [PATCH 1/3] wireless: ipw2100: " Stanislav Yakovlev

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='000801cee981$02414cd0$06c3e670$%han@samsung.com' \
    --to=jg1.han@samsung.com \
    --cc=IvDoorn@gmail.com \
    --cc=gwingerde@gmail.com \
    --cc=helmut.schaa@googlemail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.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