Fix coding style in cfg80211.c
cover Fix coding style in cfg80211.c
Alaa Mohamed (2):
staging: wlan-ng: Fix Lines shouldn't end with '('
staging: wlan-ng: Fix Alignment with parenthesis
drivers/staging/wlan-ng/cfg80211.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
Signature · 1 line
2.35.1
PATCH 1/2 staging: wlan-ng: Fix Lines shouldn't end with '('
Fix "CHECK: Lines should not end with a '('"
for lines 331 and 485 Reported By checkpatch
Signed-off-by Alaa Mohamed <[email protected]>
--- drivers/staging/wlan-ng/cfg80211.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/staging/wlan-ng/cfg80211.c +2 -4
@@ -328,8 +328,7 @@ static int prism2_scan(struct wiphy *wiphy, (i < request->n_channels) && i <ARRAY_SIZE (prism2_channels); i++) msg1.channellist.data.data[i] = -ieee80211_frequency_to_channel ( - request->channels[i]->center_freq); +ieee80211_frequency_to_channel (request->channels[i]->center_freq); msg1.channellist.data.len = request->n_channels; msg1.maxchanneltime.data =250 ;
@@ -482,8 +481,7 @@ static int prism2_connect(struct wiphy *wiphy, struct net_device *dev, goto exit;/* send key to driver */ - did =didmib_dot11smt_wepdefaultkeystable_key ( - sme->key_idx +1 ); + did =didmib_dot11smt_wepdefaultkeystable_key (sme->key_idx +1 ); result =prism2_domibset_pstr32 (wlandev, did, sme->key_len, (u8 *)sme->key);
Signature · 1 line
2.35.1
PATCH 2/2 staging: wlan-ng: Fix Alignment with parenthesis
In reply to Alaa MohamedFix " CHECK: Alignment should match open parenthesis " Reported by checkpath
Signed-off-by Alaa Mohamed <[email protected]>
--- drivers/staging/wlan-ng/cfg80211.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wlan-ng/cfg80211.c +2 -2
@@ -475,7 +475,7 @@ static int prism2_connect(struct wiphy *wiphy, struct net_device *dev,return -EINVAL ; result =prism2_domibset_uint32 (wlandev, -DIDMIB_DOT11SMT_PRIVACYTABLE_WEPDEFAULTKEYID , +DIDMIB_DOT11SMT_PRIVACYTABLE_WEPDEFAULTKEYID , sme->key_idx);if (result) goto exit;
@@ -587,7 +587,7 @@ static int prism2_set_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev, data =MBM_TO_DBM (mbm); result =prism2_domibset_uint32 (wlandev, -DIDMIB_DOT11PHY_TXPOWERTABLE_CURRENTTXPOWERLEVEL , +DIDMIB_DOT11PHY_TXPOWERTABLE_CURRENTTXPOWERLEVEL , data);if (result) {
Signature · 1 line
2.35.1