public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723au: Remove unused pointer in rtw_wdev_free()
@ 2014-04-26 20:10 Christian Engelmayer
  2014-05-04  0:20 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Engelmayer @ 2014-04-26 20:10 UTC (permalink / raw)
  To: devel; +Cc: Larry.Finger, gregkh, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1009 bytes --]

Pointer 'pwdev_priv' in function rtw_wdev_free() is unused - thus remove it.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
---
Compile tested and applies against v3.15-rc2 as well as branch staging-next
of tree git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
---
 drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c
index ca100dc..be89741 100644
--- a/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c
+++ b/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c
@@ -3576,15 +3576,11 @@ exit:
 
 void rtw_wdev_free(struct wireless_dev *wdev)
 {
-	struct rtw_wdev_priv *pwdev_priv;
-
 	DBG_8723A("%s(wdev =%p)\n", __func__, wdev);
 
 	if (!wdev)
 		return;
 
-	pwdev_priv = wdev_to_priv(wdev);
-
 	kfree(wdev->wiphy->bands[IEEE80211_BAND_2GHZ]);
 	kfree(wdev->wiphy->bands[IEEE80211_BAND_5GHZ]);
 
-- 
1.9.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] staging: rtl8723au: Remove unused pointer in rtw_wdev_free()
  2014-04-26 20:10 [PATCH] staging: rtl8723au: Remove unused pointer in rtw_wdev_free() Christian Engelmayer
@ 2014-05-04  0:20 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2014-05-04  0:20 UTC (permalink / raw)
  To: Christian Engelmayer; +Cc: devel, linux-kernel, Larry.Finger

On Sat, Apr 26, 2014 at 10:10:29PM +0200, Christian Engelmayer wrote:
> Pointer 'pwdev_priv' in function rtw_wdev_free() is unused - thus remove it.
> 
> Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
> ---
> Compile tested and applies against v3.15-rc2 as well as branch staging-next
> of tree git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git

This doesn't seem to apply to my tree at all :(

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-04  1:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-26 20:10 [PATCH] staging: rtl8723au: Remove unused pointer in rtw_wdev_free() Christian Engelmayer
2014-05-04  0:20 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox