* [Outreachy kernel] [PATCH 0/7] staging: rtlwifi: Compress two lines
@ 2019-03-31 13:14 Payal Kshirsagar
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 1/7] staging: rtlwifi: Compress two lines into one line Payal Kshirsagar
` (6 more replies)
0 siblings, 7 replies; 15+ messages in thread
From: Payal Kshirsagar @ 2019-03-31 13:14 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Payal Kshirsagar
This patchset:
-Compresses two lines into one line that is to return a value sometimes it need not be stored in temporary return variable and removes unnecessary variables.
Payal Kshirsagar (7):
staging: rtlwifi: Compress two lines into one line
staging: rtlwifi: phydm: phydm.c: Compress two lines into one line
staging: rtlwifi: phydm: phydm_rainfo.c: Compress two lines into one
line
staging: rtlwifi: btcoexist: Compress two lines into one line
staging: rtlwifi: halmac: halmac_88xx: Compress two lines into one
line
staging: rtlwifi: halmac: Compress two lines into one line
staging: rtlwifi: halmac: halmac_api.c: Compress two lines into one
line
drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c | 5 +----
.../rtlwifi/halmac/halmac_88xx/halmac_api_88xx_sdio.c | 5 +----
.../rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c | 5 +----
drivers/staging/rtlwifi/halmac/halmac_api.c | 7 ++-----
drivers/staging/rtlwifi/phydm/phydm.c | 16 ++++------------
drivers/staging/rtlwifi/phydm/phydm_rainfo.c | 5 +----
drivers/staging/rtlwifi/rtl8822be/phy.c | 12 ++++--------
7 files changed, 14 insertions(+), 41 deletions(-)
--
2.7.4
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Outreachy kernel] [PATCH 1/7] staging: rtlwifi: Compress two lines into one line
2019-03-31 13:14 [Outreachy kernel] [PATCH 0/7] staging: rtlwifi: Compress two lines Payal Kshirsagar
@ 2019-03-31 13:14 ` Payal Kshirsagar
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 2/7] staging: rtlwifi: phydm: phydm.c: " Payal Kshirsagar
` (5 subsequent siblings)
6 siblings, 0 replies; 15+ messages in thread
From: Payal Kshirsagar @ 2019-03-31 13:14 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Payal Kshirsagar
Challenge suggested by coccinelle.
Compresses two lines into one line and remove unnecessary variable.
Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
---
drivers/staging/rtlwifi/rtl8822be/phy.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/drivers/staging/rtlwifi/rtl8822be/phy.c b/drivers/staging/rtlwifi/rtl8822be/phy.c
index 048904d..4f69776 100644
--- a/drivers/staging/rtlwifi/rtl8822be/phy.c
+++ b/drivers/staging/rtlwifi/rtl8822be/phy.c
@@ -1566,13 +1566,12 @@ _rtl8822be_phy_get_txpower_by_rate(struct ieee80211_hw *hw, u8 band, u8 path,
struct rtl_priv *rtlpriv = rtl_priv(hw);
struct rtl_phy *rtlphy = &rtlpriv->phy;
u8 tx_num;
- char tx_pwr_diff = 0;
if (band != BAND_ON_2_4G && band != BAND_ON_5G)
- return tx_pwr_diff;
+ return 0;
if (path > RF90_PATH_B)
- return tx_pwr_diff;
+ return 0;
if ((rate >= DESC_RATEMCS8 && rate <= DESC_RATEMCS15) ||
(rate >= DESC_RATEVHT2SS_MCS0 && rate <= DESC_RATEVHT2SS_MCS9))
@@ -1580,11 +1579,8 @@ _rtl8822be_phy_get_txpower_by_rate(struct ieee80211_hw *hw, u8 band, u8 path,
else
tx_num = RF_1TX;
- tx_pwr_diff = (char)(rtlphy->tx_power_by_rate_offset[band][path][tx_num]
- [rate] &
- 0xff);
-
- return tx_pwr_diff;
+ return (char)(rtlphy->tx_power_by_rate_offset[band][path][tx_num]
+ [rate] & 0xff);
}
u8 rtl8822be_get_txpower_index(struct ieee80211_hw *hw, u8 path, u8 rate,
--
2.7.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Outreachy kernel] [PATCH 2/7] staging: rtlwifi: phydm: phydm.c: Compress two lines into one line
2019-03-31 13:14 [Outreachy kernel] [PATCH 0/7] staging: rtlwifi: Compress two lines Payal Kshirsagar
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 1/7] staging: rtlwifi: Compress two lines into one line Payal Kshirsagar
@ 2019-03-31 13:14 ` Payal Kshirsagar
2019-03-31 13:30 ` Julia Lawall
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 3/7] staging: rtlwifi: phydm: phydm_rainfo.c: " Payal Kshirsagar
` (4 subsequent siblings)
6 siblings, 1 reply; 15+ messages in thread
From: Payal Kshirsagar @ 2019-03-31 13:14 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Payal Kshirsagar
Challenge suggested by coccinelle.
Compresses two lines into one line and remove unnecessary variables.
Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
---
drivers/staging/rtlwifi/phydm/phydm.c | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/drivers/staging/rtlwifi/phydm/phydm.c b/drivers/staging/rtlwifi/phydm/phydm.c
index 473eeb6..09dbb96 100644
--- a/drivers/staging/rtlwifi/phydm/phydm.c
+++ b/drivers/staging/rtlwifi/phydm/phydm.c
@@ -49,7 +49,7 @@ static void odm_update_power_training_state(struct phy_dm_struct *dm);
/*Y = 10*log(X)*/
s32 odm_pwdb_conversion(s32 X, u32 total_bit, u32 decimal_bit)
{
- s32 Y, integer = 0, decimal = 0;
+ s32 integer = 0, decimal = 0;
u32 i;
if (X == 0)
@@ -66,9 +66,7 @@ s32 odm_pwdb_conversion(s32 X, u32 total_bit, u32 decimal_bit)
}
}
- Y = 3 * (integer - decimal_bit) + decimal; /* 10*log(x)=3*log2(x), */
-
- return Y;
+ return 3 * (integer - decimal_bit) + decimal; /* 10*log(x)=3*log2(x), */;
}
s32 odm_sign_conversion(s32 value, u32 total_bit)
@@ -1240,7 +1238,6 @@ u32 odm_convert_to_db(u32 value)
{
u8 i;
u8 j;
- u32 dB;
value = value & 0xFFFF;
@@ -1257,16 +1254,13 @@ u32 odm_convert_to_db(u32 value)
break;
}
- dB = (i << 3) + j + 1;
-
- return dB;
+ return (i << 3) + j + 1;
}
u32 odm_convert_to_linear(u32 value)
{
u8 i;
u8 j;
- u32 linear;
/* 1dB~96dB */
@@ -1275,9 +1269,7 @@ u32 odm_convert_to_linear(u32 value)
i = (u8)((value - 1) >> 3);
j = (u8)(value - 1) - (i << 3);
- linear = db_invert_table[i][j];
-
- return linear;
+ return db_invert_table[i][j];
}
/*
--
2.7.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Outreachy kernel] [PATCH 3/7] staging: rtlwifi: phydm: phydm_rainfo.c: Compress two lines into one line
2019-03-31 13:14 [Outreachy kernel] [PATCH 0/7] staging: rtlwifi: Compress two lines Payal Kshirsagar
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 1/7] staging: rtlwifi: Compress two lines into one line Payal Kshirsagar
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 2/7] staging: rtlwifi: phydm: phydm.c: " Payal Kshirsagar
@ 2019-03-31 13:14 ` Payal Kshirsagar
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 4/7] staging: rtlwifi: btcoexist: " Payal Kshirsagar
` (3 subsequent siblings)
6 siblings, 0 replies; 15+ messages in thread
From: Payal Kshirsagar @ 2019-03-31 13:14 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Payal Kshirsagar
Challenge suggested by coccinelle.
Compresses two lines into one line and remove unnecessary variable.
Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
---
drivers/staging/rtlwifi/phydm/phydm_rainfo.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/staging/rtlwifi/phydm/phydm_rainfo.c b/drivers/staging/rtlwifi/phydm/phydm_rainfo.c
index ed740a9..0f24bb2 100644
--- a/drivers/staging/rtlwifi/phydm/phydm_rainfo.c
+++ b/drivers/staging/rtlwifi/phydm/phydm_rainfo.c
@@ -926,8 +926,6 @@ void odm_refresh_basic_rate_mask(void *dm_void) {}
u8 phydm_rate_order_compute(void *dm_void, u8 rate_idx)
{
- u8 rate_order = 0;
-
if (rate_idx >= ODM_RATEVHTSS4MCS0) {
rate_idx -= ODM_RATEVHTSS4MCS0;
/**/
@@ -950,9 +948,8 @@ u8 phydm_rate_order_compute(void *dm_void, u8 rate_idx)
rate_idx -= ODM_RATEMCS8;
/**/
}
- rate_order = rate_idx;
- return rate_order;
+ return rate_idx;
}
static void phydm_ra_common_info_update(void *dm_void)
--
2.7.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Outreachy kernel] [PATCH 4/7] staging: rtlwifi: btcoexist: Compress two lines into one line
2019-03-31 13:14 [Outreachy kernel] [PATCH 0/7] staging: rtlwifi: Compress two lines Payal Kshirsagar
` (2 preceding siblings ...)
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 3/7] staging: rtlwifi: phydm: phydm_rainfo.c: " Payal Kshirsagar
@ 2019-03-31 13:14 ` Payal Kshirsagar
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 5/7] staging: rtlwifi: halmac: halmac_88xx: " Payal Kshirsagar
` (2 subsequent siblings)
6 siblings, 0 replies; 15+ messages in thread
From: Payal Kshirsagar @ 2019-03-31 13:14 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Payal Kshirsagar
Challenge suggested by coccinelle.
Compresses two lines into one line and remove unnecessary variable.
Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
---
drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c b/drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c
index b519d18..dbb11c2 100644
--- a/drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c
+++ b/drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c
@@ -456,7 +456,6 @@ static u32 halbtc_get_wifi_link_status(struct btc_coexist *btcoexist)
*/
struct rtl_priv *rtlpriv = btcoexist->adapter;
struct rtl_mac *mac = rtl_mac(rtlpriv);
- u32 ret_val = 0;
u32 port_connected_status = 0, num_of_connected_port = 0;
if (mac->opmode == NL80211_IFTYPE_STATION &&
@@ -471,9 +470,7 @@ static u32 halbtc_get_wifi_link_status(struct btc_coexist *btcoexist)
}
/* TODO: P2P Connected Status */
- ret_val = (num_of_connected_port << 16) | port_connected_status;
-
- return ret_val;
+ return (num_of_connected_port << 16) | port_connected_status;
}
static bool halbtc_get(void *void_btcoexist, u8 get_type, void *out_buf)
--
2.7.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Outreachy kernel] [PATCH 5/7] staging: rtlwifi: halmac: halmac_88xx: Compress two lines into one line
2019-03-31 13:14 [Outreachy kernel] [PATCH 0/7] staging: rtlwifi: Compress two lines Payal Kshirsagar
` (3 preceding siblings ...)
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 4/7] staging: rtlwifi: btcoexist: " Payal Kshirsagar
@ 2019-03-31 13:14 ` Payal Kshirsagar
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 6/7] staging: rtlwifi: halmac: " Payal Kshirsagar
[not found] ` <cover.1554036847.git.payal.s.kshirsagar.98@gmail.com>
6 siblings, 0 replies; 15+ messages in thread
From: Payal Kshirsagar @ 2019-03-31 13:14 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Payal Kshirsagar
Challenge suggested by coccinelle.
Compresses two lines into one line and remove unnecessary variable.
Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
---
drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_sdio.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_sdio.c b/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_sdio.c
index 979821e..5811787 100644
--- a/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_sdio.c
+++ b/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_sdio.c
@@ -165,7 +165,6 @@ halmac_cfg_rx_aggregation_88xx_sdio(struct halmac_adapter *halmac_adapter,
u8 halmac_reg_read_8_sdio_88xx(struct halmac_adapter *halmac_adapter,
u32 halmac_offset)
{
- u8 value8;
void *driver_adapter = NULL;
struct halmac_api *halmac_api;
enum halmac_ret_status status = HALMAC_RET_SUCCESS;
@@ -190,9 +189,7 @@ u8 halmac_reg_read_8_sdio_88xx(struct halmac_adapter *halmac_adapter,
return status;
}
- value8 = PLATFORM_SDIO_CMD52_READ(driver_adapter, halmac_offset);
-
- return value8;
+ return PLATFORM_SDIO_CMD52_READ(driver_adapter, halmac_offset);
}
/**
--
2.7.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Outreachy kernel] [PATCH 6/7] staging: rtlwifi: halmac: Compress two lines into one line
2019-03-31 13:14 [Outreachy kernel] [PATCH 0/7] staging: rtlwifi: Compress two lines Payal Kshirsagar
` (4 preceding siblings ...)
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 5/7] staging: rtlwifi: halmac: halmac_88xx: " Payal Kshirsagar
@ 2019-03-31 13:14 ` Payal Kshirsagar
2019-03-31 13:28 ` Julia Lawall
[not found] ` <cover.1554036847.git.payal.s.kshirsagar.98@gmail.com>
6 siblings, 1 reply; 15+ messages in thread
From: Payal Kshirsagar @ 2019-03-31 13:14 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Payal Kshirsagar
Challenge suggested by coccinelle.
Compresses two lines into one line and remove unnecessary variable.
Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
---
drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c b/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
index 0bd6abd..0ae0d02 100644
--- a/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
+++ b/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
@@ -192,7 +192,6 @@ halmac_cfg_rx_aggregation_88xx_usb(struct halmac_adapter *halmac_adapter,
u8 halmac_reg_read_8_usb_88xx(struct halmac_adapter *halmac_adapter,
u32 halmac_offset)
{
- u8 value8;
void *driver_adapter = NULL;
struct halmac_api *halmac_api;
@@ -205,9 +204,7 @@ u8 halmac_reg_read_8_usb_88xx(struct halmac_adapter *halmac_adapter,
driver_adapter = halmac_adapter->driver_adapter;
halmac_api = (struct halmac_api *)halmac_adapter->halmac_api;
- value8 = PLATFORM_REG_READ_8(driver_adapter, halmac_offset);
-
- return value8;
+ return PLATFORM_REG_READ_8(driver_adapter, halmac_offset);
}
/**
--
2.7.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [Outreachy kernel] [PATCH 7/7] staging: rtlwifi: halmac: Compress two lines into one line
[not found] ` <cover.1554036847.git.payal.s.kshirsagar.98@gmail.com>
@ 2019-03-31 13:14 ` Payal Kshirsagar
0 siblings, 0 replies; 15+ messages in thread
From: Payal Kshirsagar @ 2019-03-31 13:14 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Payal Kshirsagar
Challenge suggested by coccinelle.
Compresses two lines into one line and remove unnecessary variable.
Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
---
drivers/staging/rtlwifi/halmac/halmac_api.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/rtlwifi/halmac/halmac_api.c b/drivers/staging/rtlwifi/halmac/halmac_api.c
index e75eb42..be75731 100644
--- a/drivers/staging/rtlwifi/halmac/halmac_api.c
+++ b/drivers/staging/rtlwifi/halmac/halmac_api.c
@@ -133,7 +133,6 @@ platform_reg_read_8_sdio(void *driver_adapter,
struct halmac_platform_api *halmac_platform_api,
u32 offset)
{
- u8 value8;
u32 halmac_offset = offset;
enum halmac_ret_status status = HALMAC_RET_SUCCESS;
@@ -146,10 +145,8 @@ platform_reg_read_8_sdio(void *driver_adapter,
return status;
}
- value8 = halmac_platform_api->SDIO_CMD52_READ(driver_adapter,
- halmac_offset);
-
- return value8;
+ return halmac_platform_api->SDIO_CMD52_READ(driver_adapter,
+ halmac_offset);
}
static enum halmac_ret_status
--
2.7.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [Outreachy kernel] [PATCH 6/7] staging: rtlwifi: halmac: Compress two lines into one line
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 6/7] staging: rtlwifi: halmac: " Payal Kshirsagar
@ 2019-03-31 13:28 ` Julia Lawall
2019-03-31 13:31 ` Payal Kshirsagar
0 siblings, 1 reply; 15+ messages in thread
From: Julia Lawall @ 2019-03-31 13:28 UTC (permalink / raw)
To: Payal Kshirsagar; +Cc: outreachy-kernel
6 and 7 have the same subject line.
julia
On Sun, 31 Mar 2019, Payal Kshirsagar wrote:
> Challenge suggested by coccinelle.
> Compresses two lines into one line and remove unnecessary variable.
>
> Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
> ---
> drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c b/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> index 0bd6abd..0ae0d02 100644
> --- a/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> +++ b/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> @@ -192,7 +192,6 @@ halmac_cfg_rx_aggregation_88xx_usb(struct halmac_adapter *halmac_adapter,
> u8 halmac_reg_read_8_usb_88xx(struct halmac_adapter *halmac_adapter,
> u32 halmac_offset)
> {
> - u8 value8;
> void *driver_adapter = NULL;
> struct halmac_api *halmac_api;
>
> @@ -205,9 +204,7 @@ u8 halmac_reg_read_8_usb_88xx(struct halmac_adapter *halmac_adapter,
> driver_adapter = halmac_adapter->driver_adapter;
> halmac_api = (struct halmac_api *)halmac_adapter->halmac_api;
>
> - value8 = PLATFORM_REG_READ_8(driver_adapter, halmac_offset);
> -
> - return value8;
> + return PLATFORM_REG_READ_8(driver_adapter, halmac_offset);
> }
>
> /**
> --
> 2.7.4
>
> --
> 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/a94f301af01c055a8524ae77206fadd9f6e524eb.1554037161.git.payal.s.kshirsagar.98%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Outreachy kernel] [PATCH 2/7] staging: rtlwifi: phydm: phydm.c: Compress two lines into one line
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 2/7] staging: rtlwifi: phydm: phydm.c: " Payal Kshirsagar
@ 2019-03-31 13:30 ` Julia Lawall
2019-03-31 13:32 ` Payal Kshirsagar
0 siblings, 1 reply; 15+ messages in thread
From: Julia Lawall @ 2019-03-31 13:30 UTC (permalink / raw)
To: Payal Kshirsagar; +Cc: outreachy-kernel
On Sun, 31 Mar 2019, Payal Kshirsagar wrote:
> Challenge suggested by coccinelle.
> Compresses two lines into one line and remove unnecessary variables.
>
> Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
> ---
> drivers/staging/rtlwifi/phydm/phydm.c | 16 ++++------------
> 1 file changed, 4 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/staging/rtlwifi/phydm/phydm.c b/drivers/staging/rtlwifi/phydm/phydm.c
> index 473eeb6..09dbb96 100644
> --- a/drivers/staging/rtlwifi/phydm/phydm.c
> +++ b/drivers/staging/rtlwifi/phydm/phydm.c
> @@ -49,7 +49,7 @@ static void odm_update_power_training_state(struct phy_dm_struct *dm);
> /*Y = 10*log(X)*/
> s32 odm_pwdb_conversion(s32 X, u32 total_bit, u32 decimal_bit)
> {
> - s32 Y, integer = 0, decimal = 0;
> + s32 integer = 0, decimal = 0;
> u32 i;
>
> if (X == 0)
> @@ -66,9 +66,7 @@ s32 odm_pwdb_conversion(s32 X, u32 total_bit, u32 decimal_bit)
> }
> }
>
> - Y = 3 * (integer - decimal_bit) + decimal; /* 10*log(x)=3*log2(x), */
> -
> - return Y;
> + return 3 * (integer - decimal_bit) + decimal; /* 10*log(x)=3*log2(x), */;
Maybe this one would be better left as is, to keep the concepts of X and
Y.
julia
> }
>
> s32 odm_sign_conversion(s32 value, u32 total_bit)
> @@ -1240,7 +1238,6 @@ u32 odm_convert_to_db(u32 value)
> {
> u8 i;
> u8 j;
> - u32 dB;
>
> value = value & 0xFFFF;
>
> @@ -1257,16 +1254,13 @@ u32 odm_convert_to_db(u32 value)
> break;
> }
>
> - dB = (i << 3) + j + 1;
> -
> - return dB;
> + return (i << 3) + j + 1;
> }
>
> u32 odm_convert_to_linear(u32 value)
> {
> u8 i;
> u8 j;
> - u32 linear;
>
> /* 1dB~96dB */
>
> @@ -1275,9 +1269,7 @@ u32 odm_convert_to_linear(u32 value)
> i = (u8)((value - 1) >> 3);
> j = (u8)(value - 1) - (i << 3);
>
> - linear = db_invert_table[i][j];
> -
> - return linear;
> + return db_invert_table[i][j];
> }
>
> /*
> --
> 2.7.4
>
> --
> 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/55923ff0f300b54cba51dbb2662efd80c4d882d4.1554037161.git.payal.s.kshirsagar.98%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Outreachy kernel] [PATCH 6/7] staging: rtlwifi: halmac: Compress two lines into one line
2019-03-31 13:28 ` Julia Lawall
@ 2019-03-31 13:31 ` Payal Kshirsagar
2019-03-31 13:39 ` Julia Lawall
0 siblings, 1 reply; 15+ messages in thread
From: Payal Kshirsagar @ 2019-03-31 13:31 UTC (permalink / raw)
To: Julia Lawall; +Cc: outreachy-kernel
[-- Attachment #1: Type: text/plain, Size: 2830 bytes --]
On Sun, Mar 31, 2019, 6:58 PM Julia Lawall <julia.lawall@lip6.fr> wrote:
> 6 and 7 have the same subject line.
>
What can I do now ?
Should I send them again in v2 or just have to send 7th only?
Thanking
Payal
julia
>
> On Sun, 31 Mar 2019, Payal Kshirsagar wrote:
>
> > Challenge suggested by coccinelle.
> > Compresses two lines into one line and remove unnecessary variable.
> >
> > Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
> > ---
> > drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c | 5
> +----
> > 1 file changed, 1 insertion(+), 4 deletions(-)
> >
> > diff --git
> a/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> b/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> > index 0bd6abd..0ae0d02 100644
> > --- a/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> > +++ b/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> > @@ -192,7 +192,6 @@ halmac_cfg_rx_aggregation_88xx_usb(struct
> halmac_adapter *halmac_adapter,
> > u8 halmac_reg_read_8_usb_88xx(struct halmac_adapter *halmac_adapter,
> > u32 halmac_offset)
> > {
> > - u8 value8;
> > void *driver_adapter = NULL;
> > struct halmac_api *halmac_api;
> >
> > @@ -205,9 +204,7 @@ u8 halmac_reg_read_8_usb_88xx(struct halmac_adapter
> *halmac_adapter,
> > driver_adapter = halmac_adapter->driver_adapter;
> > halmac_api = (struct halmac_api *)halmac_adapter->halmac_api;
> >
> > - value8 = PLATFORM_REG_READ_8(driver_adapter, halmac_offset);
> > -
> > - return value8;
> > + return PLATFORM_REG_READ_8(driver_adapter, halmac_offset);
> > }
> >
> > /**
> > --
> > 2.7.4
> >
> > --
> > 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/a94f301af01c055a8524ae77206fadd9f6e524eb.1554037161.git.payal.s.kshirsagar.98%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.21.1903311527480.2578%40hadrien
> .
> For more options, visit https://groups.google.com/d/optout.
>
[-- Attachment #2: Type: text/html, Size: 4736 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Outreachy kernel] [PATCH 2/7] staging: rtlwifi: phydm: phydm.c: Compress two lines into one line
2019-03-31 13:30 ` Julia Lawall
@ 2019-03-31 13:32 ` Payal Kshirsagar
0 siblings, 0 replies; 15+ messages in thread
From: Payal Kshirsagar @ 2019-03-31 13:32 UTC (permalink / raw)
To: Julia Lawall; +Cc: outreachy-kernel
[-- Attachment #1: Type: text/plain, Size: 3430 bytes --]
On Sun, Mar 31, 2019, 7:00 PM Julia Lawall <julia.lawall@lip6.fr> wrote:
>
>
> On Sun, 31 Mar 2019, Payal Kshirsagar wrote:
>
> > Challenge suggested by coccinelle.
> > Compresses two lines into one line and remove unnecessary variables.
> >
> > Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
> > ---
> > drivers/staging/rtlwifi/phydm/phydm.c | 16 ++++------------
> > 1 file changed, 4 insertions(+), 12 deletions(-)
> >
> > diff --git a/drivers/staging/rtlwifi/phydm/phydm.c
> b/drivers/staging/rtlwifi/phydm/phydm.c
> > index 473eeb6..09dbb96 100644
> > --- a/drivers/staging/rtlwifi/phydm/phydm.c
> > +++ b/drivers/staging/rtlwifi/phydm/phydm.c
> > @@ -49,7 +49,7 @@ static void odm_update_power_training_state(struct
> phy_dm_struct *dm);
> > /*Y = 10*log(X)*/
> > s32 odm_pwdb_conversion(s32 X, u32 total_bit, u32 decimal_bit)
> > {
> > - s32 Y, integer = 0, decimal = 0;
> > + s32 integer = 0, decimal = 0;
> > u32 i;
> >
> > if (X == 0)
> > @@ -66,9 +66,7 @@ s32 odm_pwdb_conversion(s32 X, u32 total_bit, u32
> decimal_bit)
> > }
> > }
> >
> > - Y = 3 * (integer - decimal_bit) + decimal; /* 10*log(x)=3*log2(x),
> */
> > -
> > - return Y;
> > + return 3 * (integer - decimal_bit) + decimal; /*
> 10*log(x)=3*log2(x), */;
>
> Maybe this one would be better left as is, to keep the concepts of X and
> Y.
>
Okay I will drop this one.
Thanks
Payal
julia
>
> > }
> >
> > s32 odm_sign_conversion(s32 value, u32 total_bit)
> > @@ -1240,7 +1238,6 @@ u32 odm_convert_to_db(u32 value)
> > {
> > u8 i;
> > u8 j;
> > - u32 dB;
> >
> > value = value & 0xFFFF;
> >
> > @@ -1257,16 +1254,13 @@ u32 odm_convert_to_db(u32 value)
> > break;
> > }
> >
> > - dB = (i << 3) + j + 1;
> > -
> > - return dB;
> > + return (i << 3) + j + 1;
> > }
> >
> > u32 odm_convert_to_linear(u32 value)
> > {
> > u8 i;
> > u8 j;
> > - u32 linear;
> >
> > /* 1dB~96dB */
> >
> > @@ -1275,9 +1269,7 @@ u32 odm_convert_to_linear(u32 value)
> > i = (u8)((value - 1) >> 3);
> > j = (u8)(value - 1) - (i << 3);
> >
> > - linear = db_invert_table[i][j];
> > -
> > - return linear;
> > + return db_invert_table[i][j];
> > }
> >
> > /*
> > --
> > 2.7.4
> >
> > --
> > 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/55923ff0f300b54cba51dbb2662efd80c4d882d4.1554037161.git.payal.s.kshirsagar.98%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.21.1903311530210.2578%40hadrien
> .
> For more options, visit https://groups.google.com/d/optout.
>
[-- Attachment #2: Type: text/html, Size: 5651 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Outreachy kernel] [PATCH 6/7] staging: rtlwifi: halmac: Compress two lines into one line
2019-03-31 13:31 ` Payal Kshirsagar
@ 2019-03-31 13:39 ` Julia Lawall
2019-03-31 14:11 ` Payal Kshirsagar
0 siblings, 1 reply; 15+ messages in thread
From: Julia Lawall @ 2019-03-31 13:39 UTC (permalink / raw)
To: Payal Kshirsagar; +Cc: outreachy-kernel
[-- Attachment #1: Type: text/plain, Size: 4135 bytes --]
On Sun, 31 Mar 2019, Payal Kshirsagar wrote:
>
>
> On Sun, Mar 31, 2019, 6:58 PM Julia Lawall <julia.lawall@lip6.fr> wrote:
> 6 and 7 have the same subject line.
>
>
> What can I do now ?
> Should I send them again in v2 or just have to send 7th only?
If you make any change in a series, you should always send the entire
series again.
The only exception is when Greg has applied some of the patches in the
series.
julia
> Thanking
> Payal
>
> julia
>
> On Sun, 31 Mar 2019, Payal Kshirsagar wrote:
>
> > Challenge suggested by coccinelle.
> > Compresses two lines into one line and remove unnecessary
> variable.
> >
> > Signed-off-by: Payal Kshirsagar
> <payal.s.kshirsagar.98@gmail.com>
> > ---
> >
> drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> | 5 +----
> > 1 file changed, 1 insertion(+), 4 deletions(-)
> >
> > diff --git
> a/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> b/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> > index 0bd6abd..0ae0d02 100644
> > ---
> a/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> > +++
> b/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> > @@ -192,7 +192,6 @@ halmac_cfg_rx_aggregation_88xx_usb(struct
> halmac_adapter *halmac_adapter,
> > u8 halmac_reg_read_8_usb_88xx(struct halmac_adapter
> *halmac_adapter,
> > u32 halmac_offset)
> > {
> > - u8 value8;
> > void *driver_adapter = NULL;
> > struct halmac_api *halmac_api;
> >
> > @@ -205,9 +204,7 @@ u8 halmac_reg_read_8_usb_88xx(struct
> halmac_adapter *halmac_adapter,
> > driver_adapter = halmac_adapter->driver_adapter;
> > halmac_api = (struct halmac_api
> *)halmac_adapter->halmac_api;
> >
> > - value8 = PLATFORM_REG_READ_8(driver_adapter,
> halmac_offset);
> > -
> > - return value8;
> > + return PLATFORM_REG_READ_8(driver_adapter,
> halmac_offset);
> > }
> >
> > /**
> > --
> > 2.7.4
> >
> > --
> > 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/a94f301af01c055a8524ae77
> 206fadd9f6e524eb.1554037161.git.payal.s.kshirsagar.98%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 visithttps://groups.google.com/d/msgid/outreachy-kernel/alpine.DEB.2.21.19033115
> 27480.2578%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/CANTOzWE1am3xofByCG%2BdF
> NmwgyivZwGxtZjLHWXazT5NkLP%3DEQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Outreachy kernel] [PATCH 6/7] staging: rtlwifi: halmac: Compress two lines into one line
2019-03-31 13:39 ` Julia Lawall
@ 2019-03-31 14:11 ` Payal Kshirsagar
2019-03-31 14:22 ` Julia Lawall
0 siblings, 1 reply; 15+ messages in thread
From: Payal Kshirsagar @ 2019-03-31 14:11 UTC (permalink / raw)
To: Julia Lawall; +Cc: outreachy-kernel
[-- Attachment #1: Type: text/plain, Size: 5005 bytes --]
On Sun, 31 Mar 2019 at 19:09, Julia Lawall <julia.lawall@lip6.fr> wrote:
>
>
> On Sun, 31 Mar 2019, Payal Kshirsagar wrote:
>
> >
> >
> > On Sun, Mar 31, 2019, 6:58 PM Julia Lawall <julia.lawall@lip6.fr> wrote:
> > 6 and 7 have the same subject line.
> >
> >
> > What can I do now ?
> > Should I send them again in v2 or just have to send 7th only?
>
> If you make any change in a series, you should always send the entire
> series again.
>
> The only exception is when Greg has applied some of the patches in the
> series.
>
Would I send this patchset by dropping 2nd patch of this series.
Thanks in advance,
payal
> julia
>
> > Thanking
> > Payal
> >
> > julia
> >
> > On Sun, 31 Mar 2019, Payal Kshirsagar wrote:
> >
> > > Challenge suggested by coccinelle.
> > > Compresses two lines into one line and remove unnecessary
> > variable.
> > >
> > > Signed-off-by: Payal Kshirsagar
> > <payal.s.kshirsagar.98@gmail.com>
> > > ---
> > >
> > drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> > | 5 +----
> > > 1 file changed, 1 insertion(+), 4 deletions(-)
> > >
> > > diff --git
> > a/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> > b/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> > > index 0bd6abd..0ae0d02 100644
> > > ---
> > a/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> > > +++
> > b/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> > > @@ -192,7 +192,6 @@ halmac_cfg_rx_aggregation_88xx_usb(struct
> > halmac_adapter *halmac_adapter,
> > > u8 halmac_reg_read_8_usb_88xx(struct halmac_adapter
> > *halmac_adapter,
> > > u32 halmac_offset)
> > > {
> > > - u8 value8;
> > > void *driver_adapter = NULL;
> > > struct halmac_api *halmac_api;
> > >
> > > @@ -205,9 +204,7 @@ u8 halmac_reg_read_8_usb_88xx(struct
> > halmac_adapter *halmac_adapter,
> > > driver_adapter = halmac_adapter->driver_adapter;
> > > halmac_api = (struct halmac_api
> > *)halmac_adapter->halmac_api;
> > >
> > > - value8 = PLATFORM_REG_READ_8(driver_adapter,
> > halmac_offset);
> > > -
> > > - return value8;
> > > + return PLATFORM_REG_READ_8(driver_adapter,
> > halmac_offset);
> > > }
> > >
> > > /**
> > > --
> > > 2.7.4
> > >
> > > --
> > > 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/a94f301af01c055a8524ae77
> > 206fadd9f6e524eb.1554037161.git.payal.s.kshirsagar.98%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 visithttps://
> groups.google.com/d/msgid/outreachy-kernel/alpine.DEB.2.21.19033115
> > 27480.2578%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/CANTOzWE1am3xofByCG%2BdF
> > NmwgyivZwGxtZjLHWXazT5NkLP%3DEQ%40mail.gmail.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.21.1903311538220.2578%40hadrien
> .
> For more options, visit https://groups.google.com/d/optout.
>
[-- Attachment #2: Type: text/html, Size: 8396 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Outreachy kernel] [PATCH 6/7] staging: rtlwifi: halmac: Compress two lines into one line
2019-03-31 14:11 ` Payal Kshirsagar
@ 2019-03-31 14:22 ` Julia Lawall
0 siblings, 0 replies; 15+ messages in thread
From: Julia Lawall @ 2019-03-31 14:22 UTC (permalink / raw)
To: Payal Kshirsagar; +Cc: outreachy-kernel
[-- Attachment #1: Type: text/plain, Size: 6949 bytes --]
On Sun, 31 Mar 2019, Payal Kshirsagar wrote:
>
>
> On Sun, 31 Mar 2019 at 19:09, Julia Lawall <julia.lawall@lip6.fr> wrote:
>
>
> On Sun, 31 Mar 2019, Payal Kshirsagar wrote:
>
> >
> >
> > On Sun, Mar 31, 2019, 6:58 PM Julia Lawall
> <julia.lawall@lip6.fr> wrote:
> > 6 and 7 have the same subject line.
> >
> >
> > What can I do now ?
> > Should I send them again in v2 or just have to send 7th only?
>
> If you make any change in a series, you should always send the
> entire
> series again.
>
> The only exception is when Greg has applied some of the patches
> in the
> series.
>
>
> Would I send this patchset by dropping 2nd patch of this series.
I didn't actually ask you to drop any complete patches, only one of the
changes in a patch.
julia
> Thanks in advance,
> payal
>
> julia
>
> > Thanking
> > Payal
> >
> > julia
> >
> > On Sun, 31 Mar 2019, Payal Kshirsagar wrote:
> >
> > > Challenge suggested by coccinelle.
> > > Compresses two lines into one line and remove
> unnecessary
> > variable.
> > >
> > > Signed-off-by: Payal Kshirsagar
> > <payal.s.kshirsagar.98@gmail.com>
> > > ---
> > >
> >
> drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> > | 5 +----
> > > 1 file changed, 1 insertion(+), 4 deletions(-)
> > >
> > > diff --git
> >
> a/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> >
> b/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> > > index 0bd6abd..0ae0d02 100644
> > > ---
> >
> a/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> > > +++
> >
> b/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
> > > @@ -192,7 +192,6 @@
> halmac_cfg_rx_aggregation_88xx_usb(struct
> > halmac_adapter *halmac_adapter,
> > > u8 halmac_reg_read_8_usb_88xx(struct halmac_adapter
> > *halmac_adapter,
> > > u32 halmac_offset)
> > > {
> > > - u8 value8;
> > > void *driver_adapter = NULL;
> > > struct halmac_api *halmac_api;
> > >
> > > @@ -205,9 +204,7 @@ u8
> halmac_reg_read_8_usb_88xx(struct
> > halmac_adapter *halmac_adapter,
> > > driver_adapter = halmac_adapter->driver_adapter;
> > > halmac_api = (struct halmac_api
> > *)halmac_adapter->halmac_api;
> > >
> > > - value8 = PLATFORM_REG_READ_8(driver_adapter,
> > halmac_offset);
> > > -
> > > - return value8;
> > > + return PLATFORM_REG_READ_8(driver_adapter,
> > halmac_offset);
> > > }
> > >
> > > /**
> > > --
> > > 2.7.4
> > >
> > > --
> > > 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 webvisithttps://groups.google.com/d/msgid/outreachy-kernel/a94f301af01c055a852
> 4ae77
> >
> 206fadd9f6e524eb.1554037161.git.payal.s.kshirsagar.98%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 webvisithttps://groups.google.com/d/msgid/outreachy-kernel/alpine.DEB.2.21.190
> 33115
> > 27480.2578%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 webvisithttps://groups.google.com/d/msgid/outreachy-kernel/CANTOzWE1am3xofByCG
> %2BdF
> > NmwgyivZwGxtZjLHWXazT5NkLP%3DEQ%40mail.gmail.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 visithttps://groups.google.com/d/msgid/outreachy-kernel/alpine.DEB.2.21.19033115
> 38220.2578%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/CANTOzWFTsR7vmzAn-ypO%2B
> WSzJAdQ5bJ%2BOSFautYj0RBGqDAvzA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2019-03-31 14:22 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-31 13:14 [Outreachy kernel] [PATCH 0/7] staging: rtlwifi: Compress two lines Payal Kshirsagar
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 1/7] staging: rtlwifi: Compress two lines into one line Payal Kshirsagar
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 2/7] staging: rtlwifi: phydm: phydm.c: " Payal Kshirsagar
2019-03-31 13:30 ` Julia Lawall
2019-03-31 13:32 ` Payal Kshirsagar
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 3/7] staging: rtlwifi: phydm: phydm_rainfo.c: " Payal Kshirsagar
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 4/7] staging: rtlwifi: btcoexist: " Payal Kshirsagar
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 5/7] staging: rtlwifi: halmac: halmac_88xx: " Payal Kshirsagar
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 6/7] staging: rtlwifi: halmac: " Payal Kshirsagar
2019-03-31 13:28 ` Julia Lawall
2019-03-31 13:31 ` Payal Kshirsagar
2019-03-31 13:39 ` Julia Lawall
2019-03-31 14:11 ` Payal Kshirsagar
2019-03-31 14:22 ` Julia Lawall
[not found] ` <cover.1554036847.git.payal.s.kshirsagar.98@gmail.com>
2019-03-31 13:14 ` [Outreachy kernel] [PATCH 7/7] " Payal Kshirsagar
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.