rndis_wlan: Remove redundant NULL check before kfree
authorSyam Sidhardhan <syamsidhardh@gmail.com>
Sun, 24 Feb 2013 22:05:43 +0000 (03:35 +0530)
committerJohn 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

index 525fd7521dffa0300e660f4600967be5780c8313..5f66b4eac2985c2960460e2617f626a56c532252 100644 (file)
@@ -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);