Cleanup patch to remove the unnecessary 'NULL' check used in 'cfg80211_ops'
callback functions.
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
struct wilc_priv *priv;
struct wilc_vif *vif;
- if (!wiphy)
- return -ENOENT;
-
priv = wiphy_priv(wiphy);
vif = netdev_priv(priv->dev);
if (!priv->hif_drv)
struct wilc_vif *vif;
u8 null_bssid[ETH_ALEN] = {0};
- if (!wiphy)
- return -EFAULT;
-
priv = wiphy_priv(wiphy);
vif = netdev_priv(priv->dev);
struct add_sta_param sta_params = { {0} };
struct wilc_vif *vif;
- if (!wiphy)
- return -EFAULT;
-
priv = wiphy_priv(wiphy);
vif = netdev_priv(dev);
struct wilc_vif *vif;
struct sta_info *info;
- if (!wiphy)
- return -EFAULT;
-
priv = wiphy_priv(wiphy);
vif = netdev_priv(dev);
struct add_sta_param sta_params = { {0} };
struct wilc_vif *vif;
- if (!wiphy)
- return -EFAULT;
-
vif = netdev_priv(dev);
if (vif->iftype == AP_MODE || vif->iftype == GO_MODE) {