projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7626cf1
)
rndis_wlan: Remove redundant NULL check before kfree
author
Syam Sidhardhan
<syamsidhardh@gmail.com>
Sun, 24 Feb 2013 22:05:43 +0000
(
03:35
+0530)
committer
John W. Linville
<linville@tuxdriver.com>
Wed, 6 Mar 2013 21:24:26 +0000
(16:24 -0500)
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>
drivers/net/wireless/rndis_wlan.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/rndis_wlan.c
b/drivers/net/wireless/rndis_wlan.c
index
525fd75
..
5f66b4e
100644
(file)
--- 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)
} else if (priv->infra_mode == NDIS_80211_INFRA_ADHOC)
cfg80211_ibss_joined(usbdev->net, bssid, GFP_KERNEL);
- if (info != NULL)
- kfree(info);
+ kfree(info);
priv->connected = true;
memcpy(priv->bssid, bssid, ETH_ALEN);