From: Julia Lawall <julia.lawall@lip6.fr>
To: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
Cc: gregkh@linuxfoundation.org, outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH 2/3] staging: rtl8192u: r8192U_dm: Fix alignment issue.
Date: Tue, 19 Mar 2019 15:32:04 +0100 (CET) [thread overview]
Message-ID: <alpine.DEB.2.20.1903191530000.8263@hadrien> (raw)
In-Reply-To: <20190319141806.8592-1-sanjana99reddy99@gmail.com>
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.
>
next prev parent reply other threads:[~2019-03-19 14:32 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Julia Lawall [this message]
2019-03-19 14:32 ` [Outreachy kernel] " 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.20.1903191530000.8263@hadrien \
--to=julia.lawall@lip6.fr \
--cc=gregkh@linuxfoundation.org \
--cc=outreachy-kernel@googlegroups.com \
--cc=sanjana99reddy99@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.