Commit 977febc9 authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wilc1000: refactor del_station() to avoid parenthesis misalignment

Refactor the code to fix open parenthesis alignment issue reported by
checkpatch.pl script in del_station().
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2cfcc2fc
...@@ -1992,6 +1992,7 @@ static int del_station(struct wiphy *wiphy, struct net_device *dev, ...@@ -1992,6 +1992,7 @@ static int del_station(struct wiphy *wiphy, struct net_device *dev,
s32 ret = 0; s32 ret = 0;
struct wilc_priv *priv; struct wilc_priv *priv;
struct wilc_vif *vif; struct wilc_vif *vif;
struct sta_info *info;
if (!wiphy) if (!wiphy)
return -EFAULT; return -EFAULT;
...@@ -1999,16 +2000,17 @@ static int del_station(struct wiphy *wiphy, struct net_device *dev, ...@@ -1999,16 +2000,17 @@ static int del_station(struct wiphy *wiphy, struct net_device *dev,
priv = wiphy_priv(wiphy); priv = wiphy_priv(wiphy);
vif = netdev_priv(dev); vif = netdev_priv(dev);
if (vif->iftype == AP_MODE || vif->iftype == GO_MODE) { if (!(vif->iftype == AP_MODE || vif->iftype == GO_MODE))
return ret;
info = &priv->assoc_stainfo;
if (!mac) if (!mac)
ret = wilc_del_allstation(vif, ret = wilc_del_allstation(vif, info->sta_associated_bss);
priv->assoc_stainfo.sta_associated_bss);
ret = wilc_del_station(vif, mac); ret = wilc_del_station(vif, mac);
if (ret) if (ret)
netdev_err(dev, "Host delete station fail\n"); netdev_err(dev, "Host delete station fail\n");
}
return ret; return ret;
} }
......
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