* [PATCH 0/2] Fix coding style in cfg80211.c
@ 2022-04-02 11:37 Alaa Mohamed
2022-04-02 11:37 ` [PATCH 1/2] staging: wlan-ng: Fix Lines shouldn't end with '(' Alaa Mohamed
2022-04-02 11:37 ` [PATCH 2/2] staging: wlan-ng: Fix Alignment with parenthesis Alaa Mohamed
0 siblings, 2 replies; 3+ messages in thread
From: Alaa Mohamed @ 2022-04-02 11:37 UTC (permalink / raw)
To: outreachy; +Cc: gregkh, linux-staging, linux-kernel, eng.alaamohamedsoliman.am
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] staging: wlan-ng: Fix Lines shouldn't end with '('
2022-04-02 11:37 [PATCH 0/2] Fix coding style in cfg80211.c Alaa Mohamed
@ 2022-04-02 11:37 ` Alaa Mohamed
2022-04-02 11:37 ` [PATCH 2/2] staging: wlan-ng: Fix Alignment with parenthesis Alaa Mohamed
1 sibling, 0 replies; 3+ messages in thread
From: Alaa Mohamed @ 2022-04-02 11:37 UTC (permalink / raw)
To: outreachy; +Cc: gregkh, linux-staging, linux-kernel, eng.alaamohamedsoliman.am
Fix "CHECK: Lines should not end with a '('"
for lines 331 and 485 Reported By checkpatch
Signed-off-by: Alaa Mohamed <eng.alaamohamedsoliman.am@gmail.com>
---
drivers/staging/wlan-ng/cfg80211.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.c
index 7951bd63816f..69d616f19cff 100644
--- a/drivers/staging/wlan-ng/cfg80211.c
+++ b/drivers/staging/wlan-ng/cfg80211.c
@@ -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);
--
2.35.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] staging: wlan-ng: Fix Alignment with parenthesis
2022-04-02 11:37 [PATCH 0/2] Fix coding style in cfg80211.c Alaa Mohamed
2022-04-02 11:37 ` [PATCH 1/2] staging: wlan-ng: Fix Lines shouldn't end with '(' Alaa Mohamed
@ 2022-04-02 11:37 ` Alaa Mohamed
1 sibling, 0 replies; 3+ messages in thread
From: Alaa Mohamed @ 2022-04-02 11:37 UTC (permalink / raw)
To: outreachy; +Cc: gregkh, linux-staging, linux-kernel, eng.alaamohamedsoliman.am
Fix " CHECK: Alignment should match open parenthesis "
Reported by checkpath
Signed-off-by: Alaa Mohamed <eng.alaamohamedsoliman.am@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-02 11:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-02 11:37 [PATCH 0/2] Fix coding style in cfg80211.c Alaa Mohamed
2022-04-02 11:37 ` [PATCH 1/2] staging: wlan-ng: Fix Lines shouldn't end with '(' Alaa Mohamed
2022-04-02 11:37 ` [PATCH 2/2] staging: wlan-ng: Fix Alignment with parenthesis Alaa Mohamed
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).