diff options
author | Syam Sidhardhan <syamsidhardh@gmail.com> | 2013-02-24 17:05:43 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-03-06 16:24:26 -0500 |
commit | cd3d03d596a4d8b31fcec40120472ea518d8232e (patch) | |
tree | 1157d2f49c26ad52ad3d652447e98db58b7f04d4 /drivers/net/wireless/rndis_wlan.c | |
parent | 7626cf19713464dbad96abba3f375771447925e6 (diff) |
rndis_wlan: Remove redundant NULL check before kfree
kfree on a NULL pointer is a no-op.
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
Acked-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rndis_wlan.c')
-rw-r--r-- | drivers/net/wireless/rndis_wlan.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index 525fd7521dff..5f66b4eac298 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c | |||
@@ -2839,8 +2839,7 @@ static void rndis_wlan_do_link_up_work(struct usbnet *usbdev) | |||
2839 | } else if (priv->infra_mode == NDIS_80211_INFRA_ADHOC) | 2839 | } else if (priv->infra_mode == NDIS_80211_INFRA_ADHOC) |
2840 | cfg80211_ibss_joined(usbdev->net, bssid, GFP_KERNEL); | 2840 | cfg80211_ibss_joined(usbdev->net, bssid, GFP_KERNEL); |
2841 | 2841 | ||
2842 | if (info != NULL) | 2842 | kfree(info); |
2843 | kfree(info); | ||
2844 | 2843 | ||
2845 | priv->connected = true; | 2844 | priv->connected = true; |
2846 | memcpy(priv->bssid, bssid, ETH_ALEN); | 2845 | memcpy(priv->bssid, bssid, ETH_ALEN); |