[PATCH] staging: rtl8192e: Fix indentation in r8192E_dev.c

Renan M. S. Florencio posted 1 patch 1 year, 5 months ago
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] staging: rtl8192e: Fix indentation in r8192E_dev.c
Posted by Renan M. S. Florencio 1 year, 5 months ago
Fix indentation in r8192E_dev.c to silence checkpatch warnings:

CHECK: Alignment should match open parenthesis

Signed-off-by: Renan M. S. Florencio <renanm.florencio@gmail.com>
---
 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
index b3d4b3394284..ec867801bfbd 100644
--- a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
+++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
@@ -1741,7 +1741,7 @@ void rtl92e_update_ratr_table(struct net_device *dev)
 	    ieee->ht_info->cur_short_gi_40mhz)
 		ratr_value |= 0x80000000;
 	else if (!ieee->ht_info->cur_tx_bw40mhz &&
-		  ieee->ht_info->cur_short_gi_20mhz)
+			ieee->ht_info->cur_short_gi_20mhz)
 		ratr_value |= 0x80000000;
 	rtl92e_writel(dev, RATR0 + rate_index * 4, ratr_value);
 	rtl92e_writeb(dev, UFWP, 1);
-- 
2.34.1
Re: [PATCH] staging: rtl8192e: Fix indentation in r8192E_dev.c
Posted by Greg Kroah-Hartman 1 year, 5 months ago
On Wed, Aug 21, 2024 at 09:25:26PM -0300, Renan M. S. Florencio wrote:
> Fix indentation in r8192E_dev.c to silence checkpatch warnings:
> 
> CHECK: Alignment should match open parenthesis
> 
> Signed-off-by: Renan M. S. Florencio <renanm.florencio@gmail.com>
> ---
>  drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
> index b3d4b3394284..ec867801bfbd 100644
> --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
> +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
> @@ -1741,7 +1741,7 @@ void rtl92e_update_ratr_table(struct net_device *dev)
>  	    ieee->ht_info->cur_short_gi_40mhz)
>  		ratr_value |= 0x80000000;
>  	else if (!ieee->ht_info->cur_tx_bw40mhz &&
> -		  ieee->ht_info->cur_short_gi_20mhz)
> +			ieee->ht_info->cur_short_gi_20mhz)

But the alignment does not now match, are you sure you ran your change
through checkpatch to verify it did what you thought it did?

thanks,

greg k-h