2022-04-04 23:02:00

by Alaa Mohamed

[permalink] [raw]
Subject: [PATCH 0/2] 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(-)

--
2.35.1


2022-04-05 02:17:29

by Alaa Mohamed

[permalink] [raw]
Subject: [PATCH 2/2] staging: wlan-ng: Fix Alignment with parenthesis

Fix " 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(-)

diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.c
index 69d616f19cff..87379edce9a8 100644
--- a/drivers/staging/wlan-ng/cfg80211.c
+++ b/drivers/staging/wlan-ng/cfg80211.c
@@ -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) {
--
2.35.1