Commit cd3d03d5 authored by Syam Sidhardhan's avatar Syam Sidhardhan Committed by John W. Linville

rndis_wlan: Remove redundant NULL check before kfree

kfree on a NULL pointer is a no-op.
Signed-off-by: default avatarSyam Sidhardhan <s.syam@samsung.com>
Acked-by: default avatarJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7626cf19
...@@ -2839,7 +2839,6 @@ static void rndis_wlan_do_link_up_work(struct usbnet *usbdev) ...@@ -2839,7 +2839,6 @@ static void rndis_wlan_do_link_up_work(struct usbnet *usbdev)
} else if (priv->infra_mode == NDIS_80211_INFRA_ADHOC) } else if (priv->infra_mode == NDIS_80211_INFRA_ADHOC)
cfg80211_ibss_joined(usbdev->net, bssid, GFP_KERNEL); cfg80211_ibss_joined(usbdev->net, bssid, GFP_KERNEL);
if (info != NULL)
kfree(info); kfree(info);
priv->connected = true; priv->connected = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment