* [PATCH 0/3] Fix various warnings and checks.
@ 2019-03-19 14:14 Sanjana Sanikommu
2019-03-19 14:16 ` Greg KH
` (11 more replies)
0 siblings, 12 replies; 21+ messages in thread
From: Sanjana Sanikommu @ 2019-03-19 14:14 UTC (permalink / raw)
To: gregkh; +Cc: outreachy-kernel
This series fix the following checks and warnings.
1. Remove unnecessary blank lines.
2. Fix alignment issue.
3. Add spaces around operators.
Sanjana Sanikommu (3):
staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines.
staging: rtl8192u: r8192U_dm: Fix alignment issue.
staging: rtl8192u: r8192U: Fix space issue around operators.
drivers/staging/rtl8192u/r8190_rtl8256.c | 1 +
drivers/staging/rtl8192u/r8192U_dm.c | 29 +++++++++++-------------
2 files changed, 14 insertions(+), 16 deletions(-)
--
2.17.1
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 0/3] Fix various warnings and checks.
2019-03-19 14:14 [PATCH 0/3] Fix various warnings and checks Sanjana Sanikommu
@ 2019-03-19 14:16 ` Greg KH
2019-03-19 14:22 ` sanjana99reddy99
2019-03-19 14:17 ` [PATCH 1/3] staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines Sanjana Sanikommu
` (10 subsequent siblings)
11 siblings, 1 reply; 21+ messages in thread
From: Greg KH @ 2019-03-19 14:16 UTC (permalink / raw)
To: Sanjana Sanikommu; +Cc: outreachy-kernel
On Tue, Mar 19, 2019 at 07:44:39PM +0530, Sanjana Sanikommu wrote:
> This series fix the following checks and warnings.
> 1. Remove unnecessary blank lines.
> 2. Fix alignment issue.
> 3. Add spaces around operators.
The 0/X email needs to have the subsystem (staging), and the driver name
in it, just like your patches do. Otherwise they often get dropped by a
maintainers email client.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 1/3] staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines.
2019-03-19 14:14 [PATCH 0/3] Fix various warnings and checks Sanjana Sanikommu
2019-03-19 14:16 ` Greg KH
@ 2019-03-19 14:17 ` Sanjana Sanikommu
2019-03-19 14:18 ` [PATCH 2/3] staging: rtl8192u: r8192U_dm: Fix alignment issue Sanjana Sanikommu
` (9 subsequent siblings)
11 siblings, 0 replies; 21+ messages in thread
From: Sanjana Sanikommu @ 2019-03-19 14:17 UTC (permalink / raw)
To: gregkh; +Cc: outreachy-kernel
Remove unnecessary blank lines.
Issue found by checkpatch.pl
Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
---
drivers/staging/rtl8192u/r8190_rtl8256.c | 1 +
drivers/staging/rtl8192u/r8192U_dm.c | 3 ---
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8192u/r8190_rtl8256.c b/drivers/staging/rtl8192u/r8190_rtl8256.c
index a8c8e8c0660d..0c42eac07e2c 100644
--- a/drivers/staging/rtl8192u/r8190_rtl8256.c
+++ b/drivers/staging/rtl8192u/r8190_rtl8256.c
@@ -230,6 +230,7 @@ void phy_set_rf8256_cck_tx_power(struct net_device *dev, u8 powerlevel)
{
u32 TxAGC = 0;
struct r8192_priv *priv = ieee80211_priv(dev);
+
TxAGC = powerlevel;
if (priv->bDynamicTxLowPower) {
diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
index 6c9f9d82477d..4fe4c99a0880 100644
--- a/drivers/staging/rtl8192u/r8192U_dm.c
+++ b/drivers/staging/rtl8192u/r8192U_dm.c
@@ -45,17 +45,14 @@ static struct dynamic_rx_path_sel DM_RxPathSelTable;
/*------------------------Define global variable-----------------------------*/
-
/*------------------------Define local variable------------------------------*/
/*------------------------Define local variable------------------------------*/
-
/*--------------------Define export function prototype-----------------------*/
extern void dm_check_fsync(struct net_device *dev);
/*--------------------Define export function prototype-----------------------*/
-
/*---------------------Define local function prototype-----------------------*/
/* DM --> Rate Adaptive */
static void dm_check_rate_adaptive(struct net_device *dev);
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 2/3] staging: rtl8192u: r8192U_dm: Fix alignment issue.
2019-03-19 14:14 [PATCH 0/3] Fix various warnings and checks Sanjana Sanikommu
2019-03-19 14:16 ` Greg KH
2019-03-19 14:17 ` [PATCH 1/3] staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines Sanjana Sanikommu
@ 2019-03-19 14:18 ` Sanjana Sanikommu
2019-03-19 14:32 ` [Outreachy kernel] " Julia Lawall
2019-03-19 14:19 ` [PATCH 3/3] staging: rtl8192u: r8192U: Fix space issue around operators Sanjana Sanikommu
` (8 subsequent siblings)
11 siblings, 1 reply; 21+ messages in thread
From: Sanjana Sanikommu @ 2019-03-19 14:18 UTC (permalink / raw)
To: gregkh; +Cc: outreachy-kernel
Ajdust alignment to match open paranthesis.
Issue found by checkpatch.pl
CHECK: Alignment should match open paranthesis.
Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
---
drivers/staging/rtl8192u/r8192U_dm.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
index 4fe4c99a0880..8279fa721c74 100644
--- a/drivers/staging/rtl8192u/r8192U_dm.c
+++ b/drivers/staging/rtl8192u/r8192U_dm.c
@@ -1451,7 +1451,7 @@ static void dm_CCKTxPowerAdjust_ThermalMeter(struct net_device *dev, bool bInCH
rtl8192_setBBreg(dev, rCCK0_TxFilter1, bMaskHWord, TempVal);
RT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14, reg 0x%x = 0x%x\n",
- rCCK0_TxFilter1, TempVal);
+ rCCK0_TxFilter1, TempVal);
/* Write 0xa24 ~ 0xa27 */
TempVal = CCKSwingTable_Ch14[priv->CCK_index][2] +
(CCKSwingTable_Ch14[priv->CCK_index][3]<<8) +
@@ -1459,14 +1459,14 @@ static void dm_CCKTxPowerAdjust_ThermalMeter(struct net_device *dev, bool bInCH
(CCKSwingTable_Ch14[priv->CCK_index][5]<<24);
rtl8192_setBBreg(dev, rCCK0_TxFilter2, bMaskDWord, TempVal);
RT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14, reg 0x%x = 0x%x\n",
- rCCK0_TxFilter2, TempVal);
+ rCCK0_TxFilter2, TempVal);
/* Write 0xa28 0xa29 */
TempVal = CCKSwingTable_Ch14[priv->CCK_index][6] +
(CCKSwingTable_Ch14[priv->CCK_index][7]<<8);
rtl8192_setBBreg(dev, rCCK0_DebugPort, bMaskLWord, TempVal);
RT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14, reg 0x%x = 0x%x\n",
- rCCK0_DebugPort, TempVal);
+ rCCK0_DebugPort, TempVal);
}
}
@@ -1517,7 +1517,7 @@ void dm_restore_dynamic_mechanism_state(struct net_device *dev)
return;
/* TODO: Only 11n mode is implemented currently, */
if (!(priv->ieee80211->mode == WIRELESS_MODE_N_24G ||
- priv->ieee80211->mode == WIRELESS_MODE_N_5G))
+ priv->ieee80211->mode == WIRELESS_MODE_N_5G))
return;
{
@@ -1748,7 +1748,7 @@ static void dm_ctrl_initgain_byrssi_by_fwfalse_alarm(
/* For smooth, we can not change DIG state. */
if ((priv->undecorated_smoothed_pwdb > dm_digtable.rssi_low_thresh) &&
- (priv->undecorated_smoothed_pwdb < dm_digtable.rssi_high_thresh))
+ (priv->undecorated_smoothed_pwdb < dm_digtable.rssi_high_thresh))
return;
/*DbgPrint("Dig by Fw False Alarm\n");*/
@@ -1811,7 +1811,7 @@ static void dm_ctrl_initgain_byrssi_by_fwfalse_alarm(
u8 reset_flag = 0;
if (dm_digtable.dig_state == DM_STA_DIG_ON &&
- (priv->reset_count == reset_cnt)) {
+ (priv->reset_count == reset_cnt)) {
dm_ctrl_initgain_byrssi_highpwr(dev);
return;
}
@@ -1909,7 +1909,7 @@ static void dm_ctrl_initgain_byrssi_highpwr(
*/
if (priv->undecorated_smoothed_pwdb >= dm_digtable.rssi_high_power_highthresh) {
if (dm_digtable.dig_highpwr_state == DM_STA_DIG_ON &&
- (priv->reset_count == reset_cnt_highpwr))
+ (priv->reset_count == reset_cnt_highpwr))
return;
dm_digtable.dig_highpwr_state = DM_STA_DIG_ON;
@@ -1925,7 +1925,7 @@ static void dm_ctrl_initgain_byrssi_highpwr(
write_nic_byte(dev, rOFDM0_RxDetector1, 0x43);
} else {
if (dm_digtable.dig_highpwr_state == DM_STA_DIG_OFF &&
- (priv->reset_count == reset_cnt_highpwr))
+ (priv->reset_count == reset_cnt_highpwr))
return;
dm_digtable.dig_highpwr_state = DM_STA_DIG_OFF;
@@ -2126,7 +2126,7 @@ static void dm_cs_ratio(
{
if ((dm_digtable.precs_ratio_state != dm_digtable.curcs_ratio_state) ||
- !initialized || force_write) {
+ !initialized || force_write) {
/*DbgPrint("Write CS_ratio state = %d\n", DM_DigTable.CurCS_ratioState);*/
if (dm_digtable.curcs_ratio_state == DIG_CS_RATIO_LOWER) {
/* Lower CS ratio for CCK. */
@@ -2643,7 +2643,7 @@ void dm_fsync_timer_callback(struct timer_list *t)
bool bDoubleTimeInterval = false;
if (priv->ieee80211->state == IEEE80211_LINKED &&
- priv->ieee80211->bfsync_enable &&
+ priv->ieee80211->bfsync_enable &&
(priv->ieee80211->pHTInfo->IOTAction & HT_IOT_ACT_CDD_FSYNC)) {
/* Count rate 54, MCS [7], [12, 13, 14, 15] */
u32 rate_bitmap;
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 3/3] staging: rtl8192u: r8192U: Fix space issue around operators.
2019-03-19 14:14 [PATCH 0/3] Fix various warnings and checks Sanjana Sanikommu
` (2 preceding siblings ...)
2019-03-19 14:18 ` [PATCH 2/3] staging: rtl8192u: r8192U_dm: Fix alignment issue Sanjana Sanikommu
@ 2019-03-19 14:19 ` Sanjana Sanikommu
2019-03-19 14:28 ` [PATCH v2 0/3] staging: rtl8192u: r8192U_dm: Fix various warnings and checks Sanjana Sanikommu
` (7 subsequent siblings)
11 siblings, 0 replies; 21+ messages in thread
From: Sanjana Sanikommu @ 2019-03-19 14:19 UTC (permalink / raw)
To: gregkh; +Cc: outreachy-kernel
Add spaces around the operators.
Issue found by checkpatch.pl
CHECK: spaces preferred around that '+'
CHECK: spaces preferred around that '*'
Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
---
drivers/staging/rtl8192u/r8192U_dm.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
index 8279fa721c74..546bf5428848 100644
--- a/drivers/staging/rtl8192u/r8192U_dm.c
+++ b/drivers/staging/rtl8192u/r8192U_dm.c
@@ -2933,17 +2933,17 @@ void dm_shadow_init(struct net_device *dev)
for (page = 0; page < 5; page++)
for (offset = 0; offset < 256; offset++) {
- read_nic_byte(dev, offset+page*256, &dm_shadow[page][offset]);
+ read_nic_byte(dev, offset + page * 256, &dm_shadow[page][offset]);
/*DbgPrint("P-%d/O-%02x=%02x\r\n", page, offset, DM_Shadow[page][offset]);*/
}
for (page = 8; page < 11; page++)
for (offset = 0; offset < 256; offset++)
- read_nic_byte(dev, offset+page*256, &dm_shadow[page][offset]);
+ read_nic_byte(dev, offset + page * 256, &dm_shadow[page][offset]);
for (page = 12; page < 15; page++)
for (offset = 0; offset < 256; offset++)
- read_nic_byte(dev, offset+page*256, &dm_shadow[page][offset]);
+ read_nic_byte(dev, offset + page * 256, &dm_shadow[page][offset]);
} /* dm_shadow_init */
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* Re: [PATCH 0/3] Fix various warnings and checks.
2019-03-19 14:16 ` Greg KH
@ 2019-03-19 14:22 ` sanjana99reddy99
0 siblings, 0 replies; 21+ messages in thread
From: sanjana99reddy99 @ 2019-03-19 14:22 UTC (permalink / raw)
To: outreachy-kernel
[-- Attachment #1.1: Type: text/plain, Size: 561 bytes --]
On Tuesday, March 19, 2019 at 7:47:01 PM UTC+5:30, gregkh wrote:
>
> On Tue, Mar 19, 2019 at 07:44:39PM +0530, Sanjana Sanikommu wrote:
> > This series fix the following checks and warnings.
> > 1. Remove unnecessary blank lines.
> > 2. Fix alignment issue.
> > 3. Add spaces around operators.
>
> The 0/X email needs to have the subsystem (staging), and the driver name
> in it, just like your patches do. Otherwise they often get dropped by a
> maintainers email client.
>
I would send them in v2.
Thank you
Sanjana
>
> thanks,
>
> greg k-h
>
[-- Attachment #1.2: Type: text/html, Size: 928 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH v2 0/3] staging: rtl8192u: r8192U_dm: Fix various warnings and checks.
2019-03-19 14:14 [PATCH 0/3] Fix various warnings and checks Sanjana Sanikommu
` (3 preceding siblings ...)
2019-03-19 14:19 ` [PATCH 3/3] staging: rtl8192u: r8192U: Fix space issue around operators Sanjana Sanikommu
@ 2019-03-19 14:28 ` Sanjana Sanikommu
2019-03-19 14:30 ` [PATCH v2 1/3] staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines Sanjana Sanikommu
` (6 subsequent siblings)
11 siblings, 0 replies; 21+ messages in thread
From: Sanjana Sanikommu @ 2019-03-19 14:28 UTC (permalink / raw)
To: gregkh; +Cc: outreachy-kernel
This series fix the following checks and warnings.
1. Remove unnecessary blank lines.
2. Fix alignment issue.
3. Add spaces around operators.
Changes in v2:
Correction of subject line from [PATCH 0/3]
Sanjana Sanikommu (3):
staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines.
staging: rtl8192u: r8192U_dm: Fix alignment issue.
staging: rtl8192u: r8192U: Fix space issue around operators.
drivers/staging/rtl8192u/r8190_rtl8256.c | 1 +
drivers/staging/rtl8192u/r8192U_dm.c | 29 +++++++++++-------------
2 files changed, 14 insertions(+), 16 deletions(-)
--
2.17.1
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH v2 1/3] staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines.
2019-03-19 14:14 [PATCH 0/3] Fix various warnings and checks Sanjana Sanikommu
` (4 preceding siblings ...)
2019-03-19 14:28 ` [PATCH v2 0/3] staging: rtl8192u: r8192U_dm: Fix various warnings and checks Sanjana Sanikommu
@ 2019-03-19 14:30 ` Sanjana Sanikommu
2019-03-19 14:39 ` Greg KH
2019-03-19 14:31 ` [PATCH v2 2/3] staging: rtl8192u: r8192U_dm: Fix alignment issue Sanjana Sanikommu
` (5 subsequent siblings)
11 siblings, 1 reply; 21+ messages in thread
From: Sanjana Sanikommu @ 2019-03-19 14:30 UTC (permalink / raw)
To: gregkh; +Cc: outreachy-kernel
Remove unnecessary blank lines.
Issue found by checkpatch.pl
Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
---
Changes in v2:
No changes
drivers/staging/rtl8192u/r8190_rtl8256.c | 1 +
drivers/staging/rtl8192u/r8192U_dm.c | 3 ---
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8192u/r8190_rtl8256.c b/drivers/staging/rtl8192u/r8190_rtl8256.c
index a8c8e8c0660d..0c42eac07e2c 100644
--- a/drivers/staging/rtl8192u/r8190_rtl8256.c
+++ b/drivers/staging/rtl8192u/r8190_rtl8256.c
@@ -230,6 +230,7 @@ void phy_set_rf8256_cck_tx_power(struct net_device *dev, u8 powerlevel)
{
u32 TxAGC = 0;
struct r8192_priv *priv = ieee80211_priv(dev);
+
TxAGC = powerlevel;
if (priv->bDynamicTxLowPower) {
diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
index 6c9f9d82477d..4fe4c99a0880 100644
--- a/drivers/staging/rtl8192u/r8192U_dm.c
+++ b/drivers/staging/rtl8192u/r8192U_dm.c
@@ -45,17 +45,14 @@ static struct dynamic_rx_path_sel DM_RxPathSelTable;
/*------------------------Define global variable-----------------------------*/
-
/*------------------------Define local variable------------------------------*/
/*------------------------Define local variable------------------------------*/
-
/*--------------------Define export function prototype-----------------------*/
extern void dm_check_fsync(struct net_device *dev);
/*--------------------Define export function prototype-----------------------*/
-
/*---------------------Define local function prototype-----------------------*/
/* DM --> Rate Adaptive */
static void dm_check_rate_adaptive(struct net_device *dev);
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH v2 2/3] staging: rtl8192u: r8192U_dm: Fix alignment issue.
2019-03-19 14:14 [PATCH 0/3] Fix various warnings and checks Sanjana Sanikommu
` (5 preceding siblings ...)
2019-03-19 14:30 ` [PATCH v2 1/3] staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines Sanjana Sanikommu
@ 2019-03-19 14:31 ` Sanjana Sanikommu
2019-03-19 14:33 ` [PATCH v2 3/3] staging: rtl8192u: r8192U: Fix space issue around operators Sanjana Sanikommu
` (4 subsequent siblings)
11 siblings, 0 replies; 21+ messages in thread
From: Sanjana Sanikommu @ 2019-03-19 14:31 UTC (permalink / raw)
To: gregkh; +Cc: outreachy-kernel
Ajdust alignment to match open paranthesis.
Issue found by checkpatch.pl
CHECK: Alignment should match open paranthesis.
Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
---
Changes in v2:
No changes from [PATCH 2/3]
drivers/staging/rtl8192u/r8192U_dm.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
index 4fe4c99a0880..8279fa721c74 100644
--- a/drivers/staging/rtl8192u/r8192U_dm.c
+++ b/drivers/staging/rtl8192u/r8192U_dm.c
@@ -1451,7 +1451,7 @@ static void dm_CCKTxPowerAdjust_ThermalMeter(struct net_device *dev, bool bInCH
rtl8192_setBBreg(dev, rCCK0_TxFilter1, bMaskHWord, TempVal);
RT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14, reg 0x%x = 0x%x\n",
- rCCK0_TxFilter1, TempVal);
+ rCCK0_TxFilter1, TempVal);
/* Write 0xa24 ~ 0xa27 */
TempVal = CCKSwingTable_Ch14[priv->CCK_index][2] +
(CCKSwingTable_Ch14[priv->CCK_index][3]<<8) +
@@ -1459,14 +1459,14 @@ static void dm_CCKTxPowerAdjust_ThermalMeter(struct net_device *dev, bool bInCH
(CCKSwingTable_Ch14[priv->CCK_index][5]<<24);
rtl8192_setBBreg(dev, rCCK0_TxFilter2, bMaskDWord, TempVal);
RT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14, reg 0x%x = 0x%x\n",
- rCCK0_TxFilter2, TempVal);
+ rCCK0_TxFilter2, TempVal);
/* Write 0xa28 0xa29 */
TempVal = CCKSwingTable_Ch14[priv->CCK_index][6] +
(CCKSwingTable_Ch14[priv->CCK_index][7]<<8);
rtl8192_setBBreg(dev, rCCK0_DebugPort, bMaskLWord, TempVal);
RT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14, reg 0x%x = 0x%x\n",
- rCCK0_DebugPort, TempVal);
+ rCCK0_DebugPort, TempVal);
}
}
@@ -1517,7 +1517,7 @@ void dm_restore_dynamic_mechanism_state(struct net_device *dev)
return;
/* TODO: Only 11n mode is implemented currently, */
if (!(priv->ieee80211->mode == WIRELESS_MODE_N_24G ||
- priv->ieee80211->mode == WIRELESS_MODE_N_5G))
+ priv->ieee80211->mode == WIRELESS_MODE_N_5G))
return;
{
@@ -1748,7 +1748,7 @@ static void dm_ctrl_initgain_byrssi_by_fwfalse_alarm(
/* For smooth, we can not change DIG state. */
if ((priv->undecorated_smoothed_pwdb > dm_digtable.rssi_low_thresh) &&
- (priv->undecorated_smoothed_pwdb < dm_digtable.rssi_high_thresh))
+ (priv->undecorated_smoothed_pwdb < dm_digtable.rssi_high_thresh))
return;
/*DbgPrint("Dig by Fw False Alarm\n");*/
@@ -1811,7 +1811,7 @@ static void dm_ctrl_initgain_byrssi_by_fwfalse_alarm(
u8 reset_flag = 0;
if (dm_digtable.dig_state == DM_STA_DIG_ON &&
- (priv->reset_count == reset_cnt)) {
+ (priv->reset_count == reset_cnt)) {
dm_ctrl_initgain_byrssi_highpwr(dev);
return;
}
@@ -1909,7 +1909,7 @@ static void dm_ctrl_initgain_byrssi_highpwr(
*/
if (priv->undecorated_smoothed_pwdb >= dm_digtable.rssi_high_power_highthresh) {
if (dm_digtable.dig_highpwr_state == DM_STA_DIG_ON &&
- (priv->reset_count == reset_cnt_highpwr))
+ (priv->reset_count == reset_cnt_highpwr))
return;
dm_digtable.dig_highpwr_state = DM_STA_DIG_ON;
@@ -1925,7 +1925,7 @@ static void dm_ctrl_initgain_byrssi_highpwr(
write_nic_byte(dev, rOFDM0_RxDetector1, 0x43);
} else {
if (dm_digtable.dig_highpwr_state == DM_STA_DIG_OFF &&
- (priv->reset_count == reset_cnt_highpwr))
+ (priv->reset_count == reset_cnt_highpwr))
return;
dm_digtable.dig_highpwr_state = DM_STA_DIG_OFF;
@@ -2126,7 +2126,7 @@ static void dm_cs_ratio(
{
if ((dm_digtable.precs_ratio_state != dm_digtable.curcs_ratio_state) ||
- !initialized || force_write) {
+ !initialized || force_write) {
/*DbgPrint("Write CS_ratio state = %d\n", DM_DigTable.CurCS_ratioState);*/
if (dm_digtable.curcs_ratio_state == DIG_CS_RATIO_LOWER) {
/* Lower CS ratio for CCK. */
@@ -2643,7 +2643,7 @@ void dm_fsync_timer_callback(struct timer_list *t)
bool bDoubleTimeInterval = false;
if (priv->ieee80211->state == IEEE80211_LINKED &&
- priv->ieee80211->bfsync_enable &&
+ priv->ieee80211->bfsync_enable &&
(priv->ieee80211->pHTInfo->IOTAction & HT_IOT_ACT_CDD_FSYNC)) {
/* Count rate 54, MCS [7], [12, 13, 14, 15] */
u32 rate_bitmap;
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* Re: [Outreachy kernel] [PATCH 2/3] staging: rtl8192u: r8192U_dm: Fix alignment issue.
2019-03-19 14:18 ` [PATCH 2/3] staging: rtl8192u: r8192U_dm: Fix alignment issue Sanjana Sanikommu
@ 2019-03-19 14:32 ` Julia Lawall
2019-03-19 14:32 ` Julia Lawall
0 siblings, 1 reply; 21+ messages in thread
From: Julia Lawall @ 2019-03-19 14:32 UTC (permalink / raw)
To: Sanjana Sanikommu; +Cc: gregkh, outreachy-kernel
On Tue, 19 Mar 2019, Sanjana Sanikommu wrote:
> Ajdust alignment to match open paranthesis.
> Issue found by checkpatch.pl
>
> CHECK: Alignment should match open paranthesis.
>
> Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
> ---
> drivers/staging/rtl8192u/r8192U_dm.c | 20 ++++++++++----------
> 1 file changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
> index 4fe4c99a0880..8279fa721c74 100644
> --- a/drivers/staging/rtl8192u/r8192U_dm.c
> +++ b/drivers/staging/rtl8192u/r8192U_dm.c
> @@ -1451,7 +1451,7 @@ static void dm_CCKTxPowerAdjust_ThermalMeter(struct net_device *dev, bool bInCH
>
> rtl8192_setBBreg(dev, rCCK0_TxFilter1, bMaskHWord, TempVal);
> RT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14, reg 0x%x = 0x%x\n",
> - rCCK0_TxFilter1, TempVal);
> + rCCK0_TxFilter1, TempVal);
> /* Write 0xa24 ~ 0xa27 */
> TempVal = CCKSwingTable_Ch14[priv->CCK_index][2] +
Since you will be sending this series again, maybe you could add another
patch in the series to remove these big spaces between the = and the array
reference. I wonder if it is tab that should be a space, but I'm not sure
because the next line seems to be aligned according to this big distance.
julia
> (CCKSwingTable_Ch14[priv->CCK_index][3]<<8) +
> @@ -1459,14 +1459,14 @@ static void dm_CCKTxPowerAdjust_ThermalMeter(struct net_device *dev, bool bInCH
> (CCKSwingTable_Ch14[priv->CCK_index][5]<<24);
> rtl8192_setBBreg(dev, rCCK0_TxFilter2, bMaskDWord, TempVal);
> RT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14, reg 0x%x = 0x%x\n",
> - rCCK0_TxFilter2, TempVal);
> + rCCK0_TxFilter2, TempVal);
> /* Write 0xa28 0xa29 */
> TempVal = CCKSwingTable_Ch14[priv->CCK_index][6] +
> (CCKSwingTable_Ch14[priv->CCK_index][7]<<8);
>
> rtl8192_setBBreg(dev, rCCK0_DebugPort, bMaskLWord, TempVal);
> RT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14, reg 0x%x = 0x%x\n",
> - rCCK0_DebugPort, TempVal);
> + rCCK0_DebugPort, TempVal);
> }
> }
>
> @@ -1517,7 +1517,7 @@ void dm_restore_dynamic_mechanism_state(struct net_device *dev)
> return;
> /* TODO: Only 11n mode is implemented currently, */
> if (!(priv->ieee80211->mode == WIRELESS_MODE_N_24G ||
> - priv->ieee80211->mode == WIRELESS_MODE_N_5G))
> + priv->ieee80211->mode == WIRELESS_MODE_N_5G))
> return;
>
> {
> @@ -1748,7 +1748,7 @@ static void dm_ctrl_initgain_byrssi_by_fwfalse_alarm(
>
> /* For smooth, we can not change DIG state. */
> if ((priv->undecorated_smoothed_pwdb > dm_digtable.rssi_low_thresh) &&
> - (priv->undecorated_smoothed_pwdb < dm_digtable.rssi_high_thresh))
> + (priv->undecorated_smoothed_pwdb < dm_digtable.rssi_high_thresh))
> return;
>
> /*DbgPrint("Dig by Fw False Alarm\n");*/
> @@ -1811,7 +1811,7 @@ static void dm_ctrl_initgain_byrssi_by_fwfalse_alarm(
> u8 reset_flag = 0;
>
> if (dm_digtable.dig_state == DM_STA_DIG_ON &&
> - (priv->reset_count == reset_cnt)) {
> + (priv->reset_count == reset_cnt)) {
> dm_ctrl_initgain_byrssi_highpwr(dev);
> return;
> }
> @@ -1909,7 +1909,7 @@ static void dm_ctrl_initgain_byrssi_highpwr(
> */
> if (priv->undecorated_smoothed_pwdb >= dm_digtable.rssi_high_power_highthresh) {
> if (dm_digtable.dig_highpwr_state == DM_STA_DIG_ON &&
> - (priv->reset_count == reset_cnt_highpwr))
> + (priv->reset_count == reset_cnt_highpwr))
> return;
> dm_digtable.dig_highpwr_state = DM_STA_DIG_ON;
>
> @@ -1925,7 +1925,7 @@ static void dm_ctrl_initgain_byrssi_highpwr(
> write_nic_byte(dev, rOFDM0_RxDetector1, 0x43);
> } else {
> if (dm_digtable.dig_highpwr_state == DM_STA_DIG_OFF &&
> - (priv->reset_count == reset_cnt_highpwr))
> + (priv->reset_count == reset_cnt_highpwr))
> return;
> dm_digtable.dig_highpwr_state = DM_STA_DIG_OFF;
>
> @@ -2126,7 +2126,7 @@ static void dm_cs_ratio(
>
> {
> if ((dm_digtable.precs_ratio_state != dm_digtable.curcs_ratio_state) ||
> - !initialized || force_write) {
> + !initialized || force_write) {
> /*DbgPrint("Write CS_ratio state = %d\n", DM_DigTable.CurCS_ratioState);*/
> if (dm_digtable.curcs_ratio_state == DIG_CS_RATIO_LOWER) {
> /* Lower CS ratio for CCK. */
> @@ -2643,7 +2643,7 @@ void dm_fsync_timer_callback(struct timer_list *t)
> bool bDoubleTimeInterval = false;
>
> if (priv->ieee80211->state == IEEE80211_LINKED &&
> - priv->ieee80211->bfsync_enable &&
> + priv->ieee80211->bfsync_enable &&
> (priv->ieee80211->pHTInfo->IOTAction & HT_IOT_ACT_CDD_FSYNC)) {
> /* Count rate 54, MCS [7], [12, 13, 14, 15] */
> u32 rate_bitmap;
> --
> 2.17.1
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20190319141806.8592-1-sanjana99reddy99%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Outreachy kernel] [PATCH 2/3] staging: rtl8192u: r8192U_dm: Fix alignment issue.
2019-03-19 14:32 ` [Outreachy kernel] " Julia Lawall
@ 2019-03-19 14:32 ` Julia Lawall
2019-03-19 14:36 ` sanjana99reddy99
0 siblings, 1 reply; 21+ messages in thread
From: Julia Lawall @ 2019-03-19 14:32 UTC (permalink / raw)
To: Sanjana Sanikommu; +Cc: gregkh, outreachy-kernel
On Tue, 19 Mar 2019, Julia Lawall wrote:
>
>
> On Tue, 19 Mar 2019, Sanjana Sanikommu wrote:
>
> > Ajdust alignment to match open paranthesis.
> > Issue found by checkpatch.pl
> >
> > CHECK: Alignment should match open paranthesis.
> >
> > Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
> > ---
> > drivers/staging/rtl8192u/r8192U_dm.c | 20 ++++++++++----------
> > 1 file changed, 10 insertions(+), 10 deletions(-)
> >
> > diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
> > index 4fe4c99a0880..8279fa721c74 100644
> > --- a/drivers/staging/rtl8192u/r8192U_dm.c
> > +++ b/drivers/staging/rtl8192u/r8192U_dm.c
> > @@ -1451,7 +1451,7 @@ static void dm_CCKTxPowerAdjust_ThermalMeter(struct net_device *dev, bool bInCH
> >
> > rtl8192_setBBreg(dev, rCCK0_TxFilter1, bMaskHWord, TempVal);
> > RT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14, reg 0x%x = 0x%x\n",
> > - rCCK0_TxFilter1, TempVal);
> > + rCCK0_TxFilter1, TempVal);
> > /* Write 0xa24 ~ 0xa27 */
> > TempVal = CCKSwingTable_Ch14[priv->CCK_index][2] +
>
> Since you will be sending this series again, maybe you could add another
> patch in the series to remove these big spaces between the = and the array
> reference. I wonder if it is tab that should be a space, but I'm not sure
> because the next line seems to be aligned according to this big distance.
Oh well, it seems that you sent the new seris again already :)
julia
>
> julia
>
> > (CCKSwingTable_Ch14[priv->CCK_index][3]<<8) +
> > @@ -1459,14 +1459,14 @@ static void dm_CCKTxPowerAdjust_ThermalMeter(struct net_device *dev, bool bInCH
> > (CCKSwingTable_Ch14[priv->CCK_index][5]<<24);
> > rtl8192_setBBreg(dev, rCCK0_TxFilter2, bMaskDWord, TempVal);
> > RT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14, reg 0x%x = 0x%x\n",
> > - rCCK0_TxFilter2, TempVal);
> > + rCCK0_TxFilter2, TempVal);
> > /* Write 0xa28 0xa29 */
> > TempVal = CCKSwingTable_Ch14[priv->CCK_index][6] +
> > (CCKSwingTable_Ch14[priv->CCK_index][7]<<8);
> >
> > rtl8192_setBBreg(dev, rCCK0_DebugPort, bMaskLWord, TempVal);
> > RT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14, reg 0x%x = 0x%x\n",
> > - rCCK0_DebugPort, TempVal);
> > + rCCK0_DebugPort, TempVal);
> > }
> > }
> >
> > @@ -1517,7 +1517,7 @@ void dm_restore_dynamic_mechanism_state(struct net_device *dev)
> > return;
> > /* TODO: Only 11n mode is implemented currently, */
> > if (!(priv->ieee80211->mode == WIRELESS_MODE_N_24G ||
> > - priv->ieee80211->mode == WIRELESS_MODE_N_5G))
> > + priv->ieee80211->mode == WIRELESS_MODE_N_5G))
> > return;
> >
> > {
> > @@ -1748,7 +1748,7 @@ static void dm_ctrl_initgain_byrssi_by_fwfalse_alarm(
> >
> > /* For smooth, we can not change DIG state. */
> > if ((priv->undecorated_smoothed_pwdb > dm_digtable.rssi_low_thresh) &&
> > - (priv->undecorated_smoothed_pwdb < dm_digtable.rssi_high_thresh))
> > + (priv->undecorated_smoothed_pwdb < dm_digtable.rssi_high_thresh))
> > return;
> >
> > /*DbgPrint("Dig by Fw False Alarm\n");*/
> > @@ -1811,7 +1811,7 @@ static void dm_ctrl_initgain_byrssi_by_fwfalse_alarm(
> > u8 reset_flag = 0;
> >
> > if (dm_digtable.dig_state == DM_STA_DIG_ON &&
> > - (priv->reset_count == reset_cnt)) {
> > + (priv->reset_count == reset_cnt)) {
> > dm_ctrl_initgain_byrssi_highpwr(dev);
> > return;
> > }
> > @@ -1909,7 +1909,7 @@ static void dm_ctrl_initgain_byrssi_highpwr(
> > */
> > if (priv->undecorated_smoothed_pwdb >= dm_digtable.rssi_high_power_highthresh) {
> > if (dm_digtable.dig_highpwr_state == DM_STA_DIG_ON &&
> > - (priv->reset_count == reset_cnt_highpwr))
> > + (priv->reset_count == reset_cnt_highpwr))
> > return;
> > dm_digtable.dig_highpwr_state = DM_STA_DIG_ON;
> >
> > @@ -1925,7 +1925,7 @@ static void dm_ctrl_initgain_byrssi_highpwr(
> > write_nic_byte(dev, rOFDM0_RxDetector1, 0x43);
> > } else {
> > if (dm_digtable.dig_highpwr_state == DM_STA_DIG_OFF &&
> > - (priv->reset_count == reset_cnt_highpwr))
> > + (priv->reset_count == reset_cnt_highpwr))
> > return;
> > dm_digtable.dig_highpwr_state = DM_STA_DIG_OFF;
> >
> > @@ -2126,7 +2126,7 @@ static void dm_cs_ratio(
> >
> > {
> > if ((dm_digtable.precs_ratio_state != dm_digtable.curcs_ratio_state) ||
> > - !initialized || force_write) {
> > + !initialized || force_write) {
> > /*DbgPrint("Write CS_ratio state = %d\n", DM_DigTable.CurCS_ratioState);*/
> > if (dm_digtable.curcs_ratio_state == DIG_CS_RATIO_LOWER) {
> > /* Lower CS ratio for CCK. */
> > @@ -2643,7 +2643,7 @@ void dm_fsync_timer_callback(struct timer_list *t)
> > bool bDoubleTimeInterval = false;
> >
> > if (priv->ieee80211->state == IEEE80211_LINKED &&
> > - priv->ieee80211->bfsync_enable &&
> > + priv->ieee80211->bfsync_enable &&
> > (priv->ieee80211->pHTInfo->IOTAction & HT_IOT_ACT_CDD_FSYNC)) {
> > /* Count rate 54, MCS [7], [12, 13, 14, 15] */
> > u32 rate_bitmap;
> > --
> > 2.17.1
> >
> > --
> > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> > To post to this group, send email to outreachy-kernel@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20190319141806.8592-1-sanjana99reddy99%40gmail.com.
> > For more options, visit https://groups.google.com/d/optout.
> >
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/alpine.DEB.2.20.1903191530000.8263%40hadrien.
> For more options, visit https://groups.google.com/d/optout.
>
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH v2 3/3] staging: rtl8192u: r8192U: Fix space issue around operators.
2019-03-19 14:14 [PATCH 0/3] Fix various warnings and checks Sanjana Sanikommu
` (6 preceding siblings ...)
2019-03-19 14:31 ` [PATCH v2 2/3] staging: rtl8192u: r8192U_dm: Fix alignment issue Sanjana Sanikommu
@ 2019-03-19 14:33 ` Sanjana Sanikommu
2019-03-19 15:22 ` [PATCH v3 0/3] staging: rtl8192u: r8192U_dm: Fix various checks Sanjana Sanikommu
` (3 subsequent siblings)
11 siblings, 0 replies; 21+ messages in thread
From: Sanjana Sanikommu @ 2019-03-19 14:33 UTC (permalink / raw)
To: gregkh; +Cc: outreachy-kernel
Add spaces around the operators.
Issue found by checkpatch.pl
CHECK: spaces preferred around that '+'
CHECK: spaces preferred around that '*'
Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
---
Changes in v2:
No changes from [PATCH 3/3]
drivers/staging/rtl8192u/r8192U_dm.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
index 8279fa721c74..546bf5428848 100644
--- a/drivers/staging/rtl8192u/r8192U_dm.c
+++ b/drivers/staging/rtl8192u/r8192U_dm.c
@@ -2933,17 +2933,17 @@ void dm_shadow_init(struct net_device *dev)
for (page = 0; page < 5; page++)
for (offset = 0; offset < 256; offset++) {
- read_nic_byte(dev, offset+page*256, &dm_shadow[page][offset]);
+ read_nic_byte(dev, offset + page * 256, &dm_shadow[page][offset]);
/*DbgPrint("P-%d/O-%02x=%02x\r\n", page, offset, DM_Shadow[page][offset]);*/
}
for (page = 8; page < 11; page++)
for (offset = 0; offset < 256; offset++)
- read_nic_byte(dev, offset+page*256, &dm_shadow[page][offset]);
+ read_nic_byte(dev, offset + page * 256, &dm_shadow[page][offset]);
for (page = 12; page < 15; page++)
for (offset = 0; offset < 256; offset++)
- read_nic_byte(dev, offset+page*256, &dm_shadow[page][offset]);
+ read_nic_byte(dev, offset + page * 256, &dm_shadow[page][offset]);
} /* dm_shadow_init */
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* Re: [Outreachy kernel] [PATCH 2/3] staging: rtl8192u: r8192U_dm: Fix alignment issue.
2019-03-19 14:32 ` Julia Lawall
@ 2019-03-19 14:36 ` sanjana99reddy99
2019-03-19 14:48 ` Julia Lawall
0 siblings, 1 reply; 21+ messages in thread
From: sanjana99reddy99 @ 2019-03-19 14:36 UTC (permalink / raw)
To: outreachy-kernel
[-- Attachment #1.1: Type: text/plain, Size: 7920 bytes --]
On Tuesday, March 19, 2019 at 8:03:04 PM UTC+5:30, Julia Lawall wrote:
>
>
>
> On Tue, 19 Mar 2019, Julia Lawall wrote:
>
> >
> >
> > On Tue, 19 Mar 2019, Sanjana Sanikommu wrote:
> >
> > > Ajdust alignment to match open paranthesis.
> > > Issue found by checkpatch.pl
> > >
> > > CHECK: Alignment should match open paranthesis.
> > >
> > > Signed-off-by: Sanjana Sanikommu <sanjana9...@gmail.com <javascript:>>
>
> > > ---
> > > drivers/staging/rtl8192u/r8192U_dm.c | 20 ++++++++++----------
> > > 1 file changed, 10 insertions(+), 10 deletions(-)
> > >
> > > diff --git a/drivers/staging/rtl8192u/r8192U_dm.c
> b/drivers/staging/rtl8192u/r8192U_dm.c
> > > index 4fe4c99a0880..8279fa721c74 100644
> > > --- a/drivers/staging/rtl8192u/r8192U_dm.c
> > > +++ b/drivers/staging/rtl8192u/r8192U_dm.c
> > > @@ -1451,7 +1451,7 @@ static void
> dm_CCKTxPowerAdjust_ThermalMeter(struct net_device *dev, bool bInCH
> > >
> > > rtl8192_setBBreg(dev, rCCK0_TxFilter1, bMaskHWord,
> TempVal);
> > > RT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14, reg 0x%x
> = 0x%x\n",
> > > - rCCK0_TxFilter1, TempVal);
> > > + rCCK0_TxFilter1, TempVal);
> > > /* Write 0xa24 ~ 0xa27 */
> > > TempVal
> = CCKSwingTable_Ch14[priv->CCK_index][2] +
> >
> > Since you will be sending this series again, maybe you could add another
> > patch in the series to remove these big spaces between the = and the
> array
> > reference. I wonder if it is tab that should be a space, but I'm not
> sure
> > because the next line seems to be aligned according to this big
> distance.
>
> Oh well, it seems that you sent the new seris again already :)
>
I missed your review. Should I correct and send them again? I would like to
know.
Thank you Sanjana
>
> julia
>
> >
> > julia
> >
> > >
> (CCKSwingTable_Ch14[priv->CCK_index][3]<<8)
> +
> > > @@ -1459,14 +1459,14 @@ static void
> dm_CCKTxPowerAdjust_ThermalMeter(struct net_device *dev, bool bInCH
> > >
> (CCKSwingTable_Ch14[priv->CCK_index][5]<<24);
>
> > > rtl8192_setBBreg(dev, rCCK0_TxFilter2, bMaskDWord,
> TempVal);
> > > RT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14, reg 0x%x
> = 0x%x\n",
> > > - rCCK0_TxFilter2, TempVal);
> > > + rCCK0_TxFilter2, TempVal);
> > > /* Write 0xa28 0xa29 */
> > > TempVal
> = CCKSwingTable_Ch14[priv->CCK_index][6] +
> > >
> (CCKSwingTable_Ch14[priv->CCK_index][7]<<8);
>
> > >
> > > rtl8192_setBBreg(dev, rCCK0_DebugPort, bMaskLWord,
> TempVal);
> > > RT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14, reg 0x%x
> = 0x%x\n",
> > > - rCCK0_DebugPort, TempVal);
> > > + rCCK0_DebugPort, TempVal);
> > > }
> > > }
> > >
> > > @@ -1517,7 +1517,7 @@ void dm_restore_dynamic_mechanism_state(struct
> net_device *dev)
> > > return;
> > > /* TODO: Only 11n mode is implemented currently, */
> > > if (!(priv->ieee80211->mode == WIRELESS_MODE_N_24G ||
> > > - priv->ieee80211->mode == WIRELESS_MODE_N_5G))
> > > + priv->ieee80211->mode == WIRELESS_MODE_N_5G))
> > > return;
> > >
> > > {
> > > @@ -1748,7 +1748,7 @@ static void
> dm_ctrl_initgain_byrssi_by_fwfalse_alarm(
> > >
> > > /* For smooth, we can not change DIG state. */
> > > if ((priv->undecorated_smoothed_pwdb >
> dm_digtable.rssi_low_thresh) &&
> > > - (priv->undecorated_smoothed_pwdb <
> dm_digtable.rssi_high_thresh))
> > > + (priv->undecorated_smoothed_pwdb <
> dm_digtable.rssi_high_thresh))
> > > return;
> > >
> > > /*DbgPrint("Dig by Fw False Alarm\n");*/
> > > @@ -1811,7 +1811,7 @@ static void
> dm_ctrl_initgain_byrssi_by_fwfalse_alarm(
> > > u8 reset_flag = 0;
> > >
> > > if (dm_digtable.dig_state == DM_STA_DIG_ON &&
> > > - (priv->reset_count == reset_cnt)) {
> > > + (priv->reset_count == reset_cnt)) {
> > > dm_ctrl_initgain_byrssi_highpwr(dev);
> > > return;
> > > }
> > > @@ -1909,7 +1909,7 @@ static void dm_ctrl_initgain_byrssi_highpwr(
> > > */
> > > if (priv->undecorated_smoothed_pwdb >=
> dm_digtable.rssi_high_power_highthresh) {
> > > if (dm_digtable.dig_highpwr_state == DM_STA_DIG_ON &&
> > > - (priv->reset_count == reset_cnt_highpwr))
> > > + (priv->reset_count == reset_cnt_highpwr))
> > > return;
> > > dm_digtable.dig_highpwr_state = DM_STA_DIG_ON;
> > >
> > > @@ -1925,7 +1925,7 @@ static void dm_ctrl_initgain_byrssi_highpwr(
> > > write_nic_byte(dev, rOFDM0_RxDetector1,
> 0x43);
> > > } else {
> > > if (dm_digtable.dig_highpwr_state == DM_STA_DIG_OFF
> &&
> > > - (priv->reset_count == reset_cnt_highpwr))
> > > + (priv->reset_count == reset_cnt_highpwr))
> > > return;
> > > dm_digtable.dig_highpwr_state = DM_STA_DIG_OFF;
> > >
> > > @@ -2126,7 +2126,7 @@ static void dm_cs_ratio(
> > >
> > > {
> > > if ((dm_digtable.precs_ratio_state !=
> dm_digtable.curcs_ratio_state) ||
> > > - !initialized || force_write) {
> > > + !initialized || force_write) {
> > > /*DbgPrint("Write CS_ratio state = %d\n",
> DM_DigTable.CurCS_ratioState);*/
> > > if (dm_digtable.curcs_ratio_state ==
> DIG_CS_RATIO_LOWER) {
> > > /* Lower CS ratio for CCK. */
> > > @@ -2643,7 +2643,7 @@ void dm_fsync_timer_callback(struct timer_list
> *t)
> > > bool bDoubleTimeInterval = false;
> > >
> > > if (priv->ieee80211->state == IEEE80211_LINKED &&
> > > - priv->ieee80211->bfsync_enable &&
> > > + priv->ieee80211->bfsync_enable &&
> > > (priv->ieee80211->pHTInfo->IOTAction &
> HT_IOT_ACT_CDD_FSYNC)) {
> > > /* Count rate 54, MCS [7], [12, 13, 14, 15] */
> > > u32 rate_bitmap;
> > > --
> > > 2.17.1
> > >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups "outreachy-kernel" group.
> > > To unsubscribe from this group and stop receiving emails from it, send
> an email to outreachy-kern...@googlegroups.com <javascript:>.
> > > To post to this group, send email to outreach...@googlegroups.com
> <javascript:>.
> > > To view this discussion on the web visit
> https://groups.google.com/d/msgid/outreachy-kernel/20190319141806.8592-1-sanjana99reddy99%40gmail.com.
>
> > > For more options, visit https://groups.google.com/d/optout.
> > >
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "outreachy-kernel" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to outreachy-kern...@googlegroups.com <javascript:>.
> > To post to this group, send email to outreach...@googlegroups.com
> <javascript:>.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/outreachy-kernel/alpine.DEB.2.20.1903191530000.8263%40hadrien.
>
> > For more options, visit https://groups.google.com/d/optout.
> >
>
[-- Attachment #1.2: Type: text/html, Size: 13763 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH v2 1/3] staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines.
2019-03-19 14:30 ` [PATCH v2 1/3] staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines Sanjana Sanikommu
@ 2019-03-19 14:39 ` Greg KH
0 siblings, 0 replies; 21+ messages in thread
From: Greg KH @ 2019-03-19 14:39 UTC (permalink / raw)
To: Sanjana Sanikommu; +Cc: outreachy-kernel
On Tue, Mar 19, 2019 at 08:00:03PM +0530, Sanjana Sanikommu wrote:
> Remove unnecessary blank lines.
> Issue found by checkpatch.pl
>
> Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
> ---
> Changes in v2:
> No changes
> drivers/staging/rtl8192u/r8190_rtl8256.c | 1 +
> drivers/staging/rtl8192u/r8192U_dm.c | 3 ---
> 2 files changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/staging/rtl8192u/r8190_rtl8256.c b/drivers/staging/rtl8192u/r8190_rtl8256.c
> index a8c8e8c0660d..0c42eac07e2c 100644
> --- a/drivers/staging/rtl8192u/r8190_rtl8256.c
> +++ b/drivers/staging/rtl8192u/r8190_rtl8256.c
> @@ -230,6 +230,7 @@ void phy_set_rf8256_cck_tx_power(struct net_device *dev, u8 powerlevel)
> {
> u32 TxAGC = 0;
> struct r8192_priv *priv = ieee80211_priv(dev);
> +
> TxAGC = powerlevel;
That change is _NOT_ removing a blank line :(
Please be more careful.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [Outreachy kernel] [PATCH 2/3] staging: rtl8192u: r8192U_dm: Fix alignment issue.
2019-03-19 14:36 ` sanjana99reddy99
@ 2019-03-19 14:48 ` Julia Lawall
0 siblings, 0 replies; 21+ messages in thread
From: Julia Lawall @ 2019-03-19 14:48 UTC (permalink / raw)
To: sanjana99reddy99; +Cc: outreachy-kernel
[-- Attachment #1: Type: text/plain, Size: 12166 bytes --]
On Tue, 19 Mar 2019, sanjana99reddy99@gmail.com wrote:
>
>
> On Tuesday, March 19, 2019 at 8:03:04 PM UTC+5:30, Julia Lawall wrote:
>
>
> On Tue, 19 Mar 2019, Julia Lawall wrote:
>
> >
> >
> > On Tue, 19 Mar 2019, Sanjana Sanikommu wrote:
> >
> > > Ajdust alignment to match open paranthesis.
> > > Issue found by checkpatch.pl
> > >
> > > CHECK: Alignment should match open paranthesis.
> > >
> > > Signed-off-by: Sanjana Sanikommu <sanjana9...@gmail.com>
> > > ---
> > > ᅵdrivers/staging/rtl8192u/r8192U_dm.c | 20
> ++++++++++----------
> > > ᅵ1 file changed, 10 insertions(+), 10 deletions(-)
> > >
> > > diff --git a/drivers/staging/rtl8192u/r8192U_dm.c
> b/drivers/staging/rtl8192u/r8192U_dm.c
> > > index 4fe4c99a0880..8279fa721c74 100644
> > > --- a/drivers/staging/rtl8192u/r8192U_dm.c
> > > +++ b/drivers/staging/rtl8192u/r8192U_dm.c
> > > @@ -1451,7 +1451,7 @@ static void
> dm_CCKTxPowerAdjust_ThermalMeter(struct net_device *dev, bool
> ᅵbInCH
> > >
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵrtl8192_setBBreg(dev, rCCK0_TxFilter1,
> bMaskHWord, TempVal);
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵRT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14,
> reg 0x%x = 0x%x\n",
> > > -ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵrCCK0_TxFilter1, TempVal);
> > > +ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ rCCK0_TxFilter1, TempVal);
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ/* Write 0xa24 ~ 0xa27 */
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵTempVal
> =ᅵᅵᅵᅵᅵᅵᅵᅵCCKSwingTable_Ch14[priv->CCK_index][2] +
> >
> > Since you will be sending this series again, maybe you could
> add another
> > patch in the series to remove these big spaces between the =
> and the array
> > reference. ᅵI wonder if it is tab that should be a space, but
> I'm not sure
> > because the next line seems to be aligned according to this
> big distance.
>
> Oh well, it seems that you sent the new seris again already :)
>
>
> I missed your review. Should I correct and send them again? I would like to
> know.
It would be nice to do at some point, but perhaps get the current series
of patches accepted first.
julia
>
> Thank you Sanjanaᅵ
>
> julia
>
> >
> > julia
> >
> > >ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ(CCKSwingTable_Ch14[priv->CCK_inde
> x][3]<<8) +
> > > @@ -1459,14 +1459,14 @@ static void
> dm_CCKTxPowerAdjust_ThermalMeter(struct net_device *dev, bool
> ᅵbInCH
> > >ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ(CCKSwingTable_Ch14[priv->CCK_inde
> x][5]<<24);
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵrtl8192_setBBreg(dev, rCCK0_TxFilter2,
> bMaskDWord, TempVal);
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵRT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14,
> reg 0x%x = 0x%x\n",
> > > -ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵrCCK0_TxFilter2, TempVal);
> > > +ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ rCCK0_TxFilter2, TempVal);
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ/* Write 0xa28 ᅵ0xa29 */
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵTempVal
> =ᅵᅵᅵᅵᅵᅵᅵᅵCCKSwingTable_Ch14[priv->CCK_index][6] +
> > >ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ(CCKSwingTable_Ch14[priv->CCK_inde
> x][7]<<8);
> > >
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵrtl8192_setBBreg(dev, rCCK0_DebugPort,
> bMaskLWord, TempVal);
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵRT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14,
> reg 0x%x = 0x%x\n",
> > > -ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵrCCK0_DebugPort, TempVal);
> > > +ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ rCCK0_DebugPort, TempVal);
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵ}
> > > ᅵ}
> > >
> > > @@ -1517,7 +1517,7 @@ void
> dm_restore_dynamic_mechanism_state(struct net_device *dev)
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵreturn;
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵ/* TODO: Only 11n mode is implemented currently, */
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵif (!(priv->ieee80211->mode == WIRELESS_MODE_N_24G
> ||
> > > -ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵpriv->ieee80211->mode ==
> WIRELESS_MODE_N_5G))
> > > +ᅵᅵᅵᅵᅵᅵᅵᅵ ᅵ ᅵ ᅵpriv->ieee80211->mode == WIRELESS_MODE_N_5G))
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵreturn;
> > >
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵ{
> > > @@ -1748,7 +1748,7 @@ static void
> dm_ctrl_initgain_byrssi_by_fwfalse_alarm(
> > >
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵ/* For smooth, we can not change DIG state. */
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵif ((priv->undecorated_smoothed_pwdb >
> dm_digtable.rssi_low_thresh) &&
> > > -ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ(priv->undecorated_smoothed_pwdb <
> dm_digtable.rssi_high_thresh))
> > > +ᅵᅵᅵᅵᅵᅵᅵᅵ ᅵ ᅵ(priv->undecorated_smoothed_pwdb <
> dm_digtable.rssi_high_thresh))
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵreturn;
> > >
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵ/*DbgPrint("Dig by Fw False Alarm\n");*/
> > > @@ -1811,7 +1811,7 @@ static void
> dm_ctrl_initgain_byrssi_by_fwfalse_alarm(
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵu8 reset_flag = 0;
> > >
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵif (dm_digtable.dig_state == DM_STA_DIG_ON
> &&
> > > -ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ(priv->reset_count == reset_cnt)) {
> > > +ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ ᅵ ᅵ(priv->reset_count == reset_cnt)) {
> > >
> ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵdm_ctrl_initgain_byrssi_highpwr(dev);
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵreturn;
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ}
> > > @@ -1909,7 +1909,7 @@ static void
> dm_ctrl_initgain_byrssi_highpwr(
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵ */
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵif (priv->undecorated_smoothed_pwdb >=
> dm_digtable.rssi_high_power_highthresh) {
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵif (dm_digtable.dig_highpwr_state ==
> DM_STA_DIG_ON &&
> > > -ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ(priv->reset_count ==
> reset_cnt_highpwr))
> > > +ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ ᅵ ᅵ(priv->reset_count ==
> reset_cnt_highpwr))
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵreturn;
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵdm_digtable.dig_highpwr_state =
> DM_STA_DIG_ON;
> > >
> > > @@ -1925,7 +1925,7 @@ static void
> dm_ctrl_initgain_byrssi_highpwr(
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵwrite_nic_byte(dev,
> rOFDM0_RxDetector1, 0x43);
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵ} else {
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵif (dm_digtable.dig_highpwr_state ==
> DM_STA_DIG_OFF &&
> > > -ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ(priv->reset_count ==
> reset_cnt_highpwr))
> > > +ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ ᅵ ᅵ(priv->reset_count ==
> reset_cnt_highpwr))
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵreturn;
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵdm_digtable.dig_highpwr_state =
> DM_STA_DIG_OFF;
> > >
> > > @@ -2126,7 +2126,7 @@ staticᅵᅵᅵᅵᅵᅵᅵᅵvoid dm_cs_ratio(
> > >
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵ{
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵif ((dm_digtable.precs_ratio_state !=
> dm_digtable.curcs_ratio_state) ||
> > > -ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ!initialized || force_write) {
> > > +ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ ᅵ ᅵ!initialized || force_write) {
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ/*DbgPrint("Write CS_ratio state =
> %d\n", DM_DigTable.CurCS_ratioState);*/
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵif (dm_digtable.curcs_ratio_state
> == DIG_CS_RATIO_LOWER) {
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ/* ᅵLower CS ratio for CCK.
> */
> > > @@ -2643,7 +2643,7 @@ void dm_fsync_timer_callback(struct
> timer_list *t)
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵboolᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵbDoubleTimeInterval = false;
> > >
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵif (priv->ieee80211->state == IEEE80211_LINKED &&
> > > -ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵpriv->ieee80211->bfsync_enable &&
> > > +ᅵᅵᅵᅵᅵᅵᅵᅵ ᅵ ᅵpriv->ieee80211->bfsync_enable &&
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ(priv->ieee80211->pHTInfo->IOTAction &
> HT_IOT_ACT_CDD_FSYNC)) {
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ/* Count rate 54, MCS [7], [12, 13, 14, 15]
> */
> > > ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵu32 rate_bitmap;
> > > --
> > > 2.17.1
> > >
> > > --
> > > You received this message because you are subscribed to the
> Google Groups "outreachy-kernel" group.
> > > To unsubscribe from this group and stop receiving emails
> from it, send an email to outreachy-kern...@googlegroups.com.
> > > To post to this group, send email to
> outreach...@googlegroups.com.
> > > To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/20190319141806.8592-1-sa
> njana99reddy99%40gmail.com.
> > > For more options, visit https://groups.google.com/d/optout.
> > >
> >
> > --
> > You received this message because you are subscribed to the
> Google Groups "outreachy-kernel" group.
> > To unsubscribe from this group and stop receiving emails from
> it, send an email to outreachy-kern...@googlegroups.com.
> > To post to this group, send email to
> outreach...@googlegroups.com.
> > To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/alpine.DEB.2.20.19031915
> 30000.8263%40hadrien.
> > For more options, visit https://groups.google.com/d/optout.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/6e31cf7e-174d-4d81-b119-
> cb6498244ea3%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH v3 0/3] staging: rtl8192u: r8192U_dm: Fix various checks.
2019-03-19 14:14 [PATCH 0/3] Fix various warnings and checks Sanjana Sanikommu
` (7 preceding siblings ...)
2019-03-19 14:33 ` [PATCH v2 3/3] staging: rtl8192u: r8192U: Fix space issue around operators Sanjana Sanikommu
@ 2019-03-19 15:22 ` Sanjana Sanikommu
2019-03-19 15:23 ` [PATCH v3 1/3] staging: rtl8192u: r8192U_dm: Fix alignment issue Sanjana Sanikommu
` (2 subsequent siblings)
11 siblings, 0 replies; 21+ messages in thread
From: Sanjana Sanikommu @ 2019-03-19 15:22 UTC (permalink / raw)
To: gregkh; +Cc: outreachy-kernel
This series fix the following checks.
1. Remove unnecessary blank lines.
2. Fix alignment issue.
3. Add spaces around operators.
Changes in v3:
Change in patch sequence number.
Change in subject line.
Remove multiple blanks lines from the correct file from [PATCH v2 1/3]
No changes from [PATCH v2 2/3]
No changes from [PATCH v2 3/3]
Changes in v2.
Correction of subject line from [PATCH 0/3]
No changes from [PATCH 1/3]
No changes from [PATCH 2/3]
No changes from [PATCH 3/3]
Sanjana Sanikommu (3):
staging: rtl8192u: r8192U_dm: Fix alignment issue.
staging: rtl8192u: r8192U_dm: Fix space issue around operators.
staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines.
drivers/staging/rtl8192u/r8192U_dm.c | 29 +++++++++++++---------------
1 file changed, 13 insertions(+), 16 deletions(-)
--
2.17.1
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH v3 1/3] staging: rtl8192u: r8192U_dm: Fix alignment issue.
2019-03-19 14:14 [PATCH 0/3] Fix various warnings and checks Sanjana Sanikommu
` (8 preceding siblings ...)
2019-03-19 15:22 ` [PATCH v3 0/3] staging: rtl8192u: r8192U_dm: Fix various checks Sanjana Sanikommu
@ 2019-03-19 15:23 ` Sanjana Sanikommu
2019-03-19 15:25 ` [PATCH v3 2/3] staging: rtl8192u: r8192U_dm: Fix space issue around operators Sanjana Sanikommu
2019-03-19 15:26 ` [PATCH v3 3/3] staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines Sanjana Sanikommu
11 siblings, 0 replies; 21+ messages in thread
From: Sanjana Sanikommu @ 2019-03-19 15:23 UTC (permalink / raw)
To: gregkh; +Cc: outreachy-kernel
Ajdust alignment to match open paranthesis.
Issue found by checkpatch.pl
CHECK: Alignment should match open paranthesis.
Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
---
Changes in v3:
No changes
Changes in v2:
No changes
drivers/staging/rtl8192u/r8192U_dm.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
index 6c9f9d82477d..0f1318865dd1 100644
--- a/drivers/staging/rtl8192u/r8192U_dm.c
+++ b/drivers/staging/rtl8192u/r8192U_dm.c
@@ -1454,7 +1454,7 @@ static void dm_CCKTxPowerAdjust_ThermalMeter(struct net_device *dev, bool bInCH
rtl8192_setBBreg(dev, rCCK0_TxFilter1, bMaskHWord, TempVal);
RT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14, reg 0x%x = 0x%x\n",
- rCCK0_TxFilter1, TempVal);
+ rCCK0_TxFilter1, TempVal);
/* Write 0xa24 ~ 0xa27 */
TempVal = CCKSwingTable_Ch14[priv->CCK_index][2] +
(CCKSwingTable_Ch14[priv->CCK_index][3]<<8) +
@@ -1462,14 +1462,14 @@ static void dm_CCKTxPowerAdjust_ThermalMeter(struct net_device *dev, bool bInCH
(CCKSwingTable_Ch14[priv->CCK_index][5]<<24);
rtl8192_setBBreg(dev, rCCK0_TxFilter2, bMaskDWord, TempVal);
RT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14, reg 0x%x = 0x%x\n",
- rCCK0_TxFilter2, TempVal);
+ rCCK0_TxFilter2, TempVal);
/* Write 0xa28 0xa29 */
TempVal = CCKSwingTable_Ch14[priv->CCK_index][6] +
(CCKSwingTable_Ch14[priv->CCK_index][7]<<8);
rtl8192_setBBreg(dev, rCCK0_DebugPort, bMaskLWord, TempVal);
RT_TRACE(COMP_POWER_TRACKING, "CCK chnl 14, reg 0x%x = 0x%x\n",
- rCCK0_DebugPort, TempVal);
+ rCCK0_DebugPort, TempVal);
}
}
@@ -1520,7 +1520,7 @@ void dm_restore_dynamic_mechanism_state(struct net_device *dev)
return;
/* TODO: Only 11n mode is implemented currently, */
if (!(priv->ieee80211->mode == WIRELESS_MODE_N_24G ||
- priv->ieee80211->mode == WIRELESS_MODE_N_5G))
+ priv->ieee80211->mode == WIRELESS_MODE_N_5G))
return;
{
@@ -1751,7 +1751,7 @@ static void dm_ctrl_initgain_byrssi_by_fwfalse_alarm(
/* For smooth, we can not change DIG state. */
if ((priv->undecorated_smoothed_pwdb > dm_digtable.rssi_low_thresh) &&
- (priv->undecorated_smoothed_pwdb < dm_digtable.rssi_high_thresh))
+ (priv->undecorated_smoothed_pwdb < dm_digtable.rssi_high_thresh))
return;
/*DbgPrint("Dig by Fw False Alarm\n");*/
@@ -1814,7 +1814,7 @@ static void dm_ctrl_initgain_byrssi_by_fwfalse_alarm(
u8 reset_flag = 0;
if (dm_digtable.dig_state == DM_STA_DIG_ON &&
- (priv->reset_count == reset_cnt)) {
+ (priv->reset_count == reset_cnt)) {
dm_ctrl_initgain_byrssi_highpwr(dev);
return;
}
@@ -1912,7 +1912,7 @@ static void dm_ctrl_initgain_byrssi_highpwr(
*/
if (priv->undecorated_smoothed_pwdb >= dm_digtable.rssi_high_power_highthresh) {
if (dm_digtable.dig_highpwr_state == DM_STA_DIG_ON &&
- (priv->reset_count == reset_cnt_highpwr))
+ (priv->reset_count == reset_cnt_highpwr))
return;
dm_digtable.dig_highpwr_state = DM_STA_DIG_ON;
@@ -1928,7 +1928,7 @@ static void dm_ctrl_initgain_byrssi_highpwr(
write_nic_byte(dev, rOFDM0_RxDetector1, 0x43);
} else {
if (dm_digtable.dig_highpwr_state == DM_STA_DIG_OFF &&
- (priv->reset_count == reset_cnt_highpwr))
+ (priv->reset_count == reset_cnt_highpwr))
return;
dm_digtable.dig_highpwr_state = DM_STA_DIG_OFF;
@@ -2129,7 +2129,7 @@ static void dm_cs_ratio(
{
if ((dm_digtable.precs_ratio_state != dm_digtable.curcs_ratio_state) ||
- !initialized || force_write) {
+ !initialized || force_write) {
/*DbgPrint("Write CS_ratio state = %d\n", DM_DigTable.CurCS_ratioState);*/
if (dm_digtable.curcs_ratio_state == DIG_CS_RATIO_LOWER) {
/* Lower CS ratio for CCK. */
@@ -2646,7 +2646,7 @@ void dm_fsync_timer_callback(struct timer_list *t)
bool bDoubleTimeInterval = false;
if (priv->ieee80211->state == IEEE80211_LINKED &&
- priv->ieee80211->bfsync_enable &&
+ priv->ieee80211->bfsync_enable &&
(priv->ieee80211->pHTInfo->IOTAction & HT_IOT_ACT_CDD_FSYNC)) {
/* Count rate 54, MCS [7], [12, 13, 14, 15] */
u32 rate_bitmap;
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH v3 2/3] staging: rtl8192u: r8192U_dm: Fix space issue around operators.
2019-03-19 14:14 [PATCH 0/3] Fix various warnings and checks Sanjana Sanikommu
` (9 preceding siblings ...)
2019-03-19 15:23 ` [PATCH v3 1/3] staging: rtl8192u: r8192U_dm: Fix alignment issue Sanjana Sanikommu
@ 2019-03-19 15:25 ` Sanjana Sanikommu
2019-03-19 15:26 ` [PATCH v3 3/3] staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines Sanjana Sanikommu
11 siblings, 0 replies; 21+ messages in thread
From: Sanjana Sanikommu @ 2019-03-19 15:25 UTC (permalink / raw)
To: gregkh; +Cc: outreachy-kernel
Add spaces around the operators.
Issue found by checkpatch.pl
CHECK: spaces preferred around that '+'
CHECK: spaces preferred around that '*'
Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
---
Changes in v3:
No changes
Changes in v2:
No changes
drivers/staging/rtl8192u/r8192U_dm.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
index 0f1318865dd1..50a9fe667062 100644
--- a/drivers/staging/rtl8192u/r8192U_dm.c
+++ b/drivers/staging/rtl8192u/r8192U_dm.c
@@ -2936,17 +2936,17 @@ void dm_shadow_init(struct net_device *dev)
for (page = 0; page < 5; page++)
for (offset = 0; offset < 256; offset++) {
- read_nic_byte(dev, offset+page*256, &dm_shadow[page][offset]);
+ read_nic_byte(dev, offset + page * 256, &dm_shadow[page][offset]);
/*DbgPrint("P-%d/O-%02x=%02x\r\n", page, offset, DM_Shadow[page][offset]);*/
}
for (page = 8; page < 11; page++)
for (offset = 0; offset < 256; offset++)
- read_nic_byte(dev, offset+page*256, &dm_shadow[page][offset]);
+ read_nic_byte(dev, offset + page * 256, &dm_shadow[page][offset]);
for (page = 12; page < 15; page++)
for (offset = 0; offset < 256; offset++)
- read_nic_byte(dev, offset+page*256, &dm_shadow[page][offset]);
+ read_nic_byte(dev, offset + page * 256, &dm_shadow[page][offset]);
} /* dm_shadow_init */
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH v3 3/3] staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines.
2019-03-19 14:14 [PATCH 0/3] Fix various warnings and checks Sanjana Sanikommu
` (10 preceding siblings ...)
2019-03-19 15:25 ` [PATCH v3 2/3] staging: rtl8192u: r8192U_dm: Fix space issue around operators Sanjana Sanikommu
@ 2019-03-19 15:26 ` Sanjana Sanikommu
2019-03-20 6:49 ` Greg KH
11 siblings, 1 reply; 21+ messages in thread
From: Sanjana Sanikommu @ 2019-03-19 15:26 UTC (permalink / raw)
To: gregkh; +Cc: outreachy-kernel
Remove unnecessary blank lines.
Issue found by checkpatch.pl
Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
---
Changes in v3:
Remove multiple blank lines from correct file.
Changes in v2:
No changes
drivers/staging/rtl8192u/r8192U_dm.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
index 50a9fe667062..546bf5428848 100644
--- a/drivers/staging/rtl8192u/r8192U_dm.c
+++ b/drivers/staging/rtl8192u/r8192U_dm.c
@@ -45,17 +45,14 @@ static struct dynamic_rx_path_sel DM_RxPathSelTable;
/*------------------------Define global variable-----------------------------*/
-
/*------------------------Define local variable------------------------------*/
/*------------------------Define local variable------------------------------*/
-
/*--------------------Define export function prototype-----------------------*/
extern void dm_check_fsync(struct net_device *dev);
/*--------------------Define export function prototype-----------------------*/
-
/*---------------------Define local function prototype-----------------------*/
/* DM --> Rate Adaptive */
static void dm_check_rate_adaptive(struct net_device *dev);
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* Re: [PATCH v3 3/3] staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines.
2019-03-19 15:26 ` [PATCH v3 3/3] staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines Sanjana Sanikommu
@ 2019-03-20 6:49 ` Greg KH
2019-03-20 7:45 ` Sanjana Sanikommu
0 siblings, 1 reply; 21+ messages in thread
From: Greg KH @ 2019-03-20 6:49 UTC (permalink / raw)
To: Sanjana Sanikommu; +Cc: outreachy-kernel
On Tue, Mar 19, 2019 at 08:56:48PM +0530, Sanjana Sanikommu wrote:
> Remove unnecessary blank lines.
> Issue found by checkpatch.pl
>
> Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
> ---
> Changes in v3:
> Remove multiple blank lines from correct file.
>
> Changes in v2:
> No changes
> drivers/staging/rtl8192u/r8192U_dm.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
> index 50a9fe667062..546bf5428848 100644
> --- a/drivers/staging/rtl8192u/r8192U_dm.c
> +++ b/drivers/staging/rtl8192u/r8192U_dm.c
> @@ -45,17 +45,14 @@ static struct dynamic_rx_path_sel DM_RxPathSelTable;
>
> /*------------------------Define global variable-----------------------------*/
>
> -
> /*------------------------Define local variable------------------------------*/
> /*------------------------Define local variable------------------------------*/
>
> -
> /*--------------------Define export function prototype-----------------------*/
> extern void dm_check_fsync(struct net_device *dev);
>
> /*--------------------Define export function prototype-----------------------*/
>
> -
This change is fine, but look at this file now. All of these crazy
comments can be deleted, they are not doing anything...
thanks,
greg k-h
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH v3 3/3] staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines.
2019-03-20 6:49 ` Greg KH
@ 2019-03-20 7:45 ` Sanjana Sanikommu
0 siblings, 0 replies; 21+ messages in thread
From: Sanjana Sanikommu @ 2019-03-20 7:45 UTC (permalink / raw)
To: Greg KH; +Cc: outreachy-kernel
[-- Attachment #1: Type: text/plain, Size: 1553 bytes --]
On Wed, 20 Mar 2019, 12:19 Greg KH, <gregkh@linuxfoundation.org> wrote:
> On Tue, Mar 19, 2019 at 08:56:48PM +0530, Sanjana Sanikommu wrote:
> > Remove unnecessary blank lines.
> > Issue found by checkpatch.pl
> >
> > Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
> > ---
> > Changes in v3:
> > Remove multiple blank lines from correct file.
> >
> > Changes in v2:
> > No changes
> > drivers/staging/rtl8192u/r8192U_dm.c | 3 ---
> > 1 file changed, 3 deletions(-)
> >
> > diff --git a/drivers/staging/rtl8192u/r8192U_dm.c
> b/drivers/staging/rtl8192u/r8192U_dm.c
> > index 50a9fe667062..546bf5428848 100644
> > --- a/drivers/staging/rtl8192u/r8192U_dm.c
> > +++ b/drivers/staging/rtl8192u/r8192U_dm.c
> > @@ -45,17 +45,14 @@ static struct dynamic_rx_path_sel DM_RxPathSelTable;
> >
> > /*------------------------Define global
> variable-----------------------------*/
> >
> > -
> > /*------------------------Define local
> variable------------------------------*/
> > /*------------------------Define local
> variable------------------------------*/
> >
> > -
> > /*--------------------Define export function
> prototype-----------------------*/
> > extern void dm_check_fsync(struct net_device *dev);
> >
> > /*--------------------Define export function
> prototype-----------------------*/
> >
> > -
>
> This change is fine, but look at this file now. All of these crazy
> comments can be deleted, they are not doing anything...
>
I would delete them. Thanks for letting me know..
Sanjana.
>
> thanks,
>
> greg k-h
>
[-- Attachment #2: Type: text/html, Size: 2476 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2019-03-20 7:45 UTC | newest]
Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-19 14:14 [PATCH 0/3] Fix various warnings and checks Sanjana Sanikommu
2019-03-19 14:16 ` Greg KH
2019-03-19 14:22 ` sanjana99reddy99
2019-03-19 14:17 ` [PATCH 1/3] staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines Sanjana Sanikommu
2019-03-19 14:18 ` [PATCH 2/3] staging: rtl8192u: r8192U_dm: Fix alignment issue Sanjana Sanikommu
2019-03-19 14:32 ` [Outreachy kernel] " Julia Lawall
2019-03-19 14:32 ` Julia Lawall
2019-03-19 14:36 ` sanjana99reddy99
2019-03-19 14:48 ` Julia Lawall
2019-03-19 14:19 ` [PATCH 3/3] staging: rtl8192u: r8192U: Fix space issue around operators Sanjana Sanikommu
2019-03-19 14:28 ` [PATCH v2 0/3] staging: rtl8192u: r8192U_dm: Fix various warnings and checks Sanjana Sanikommu
2019-03-19 14:30 ` [PATCH v2 1/3] staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines Sanjana Sanikommu
2019-03-19 14:39 ` Greg KH
2019-03-19 14:31 ` [PATCH v2 2/3] staging: rtl8192u: r8192U_dm: Fix alignment issue Sanjana Sanikommu
2019-03-19 14:33 ` [PATCH v2 3/3] staging: rtl8192u: r8192U: Fix space issue around operators Sanjana Sanikommu
2019-03-19 15:22 ` [PATCH v3 0/3] staging: rtl8192u: r8192U_dm: Fix various checks Sanjana Sanikommu
2019-03-19 15:23 ` [PATCH v3 1/3] staging: rtl8192u: r8192U_dm: Fix alignment issue Sanjana Sanikommu
2019-03-19 15:25 ` [PATCH v3 2/3] staging: rtl8192u: r8192U_dm: Fix space issue around operators Sanjana Sanikommu
2019-03-19 15:26 ` [PATCH v3 3/3] staging: rtl8192u: r8192U_dm: Remove unnecessary blank lines Sanjana Sanikommu
2019-03-20 6:49 ` Greg KH
2019-03-20 7:45 ` Sanjana Sanikommu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.