* [PATCH v2] staging: rtl8192e: Fix alignment parenthesis
@ 2024-08-27 16:29 Nilo Alexandre
2024-08-27 18:37 ` Philipp Hortmann
0 siblings, 1 reply; 2+ messages in thread
From: Nilo Alexandre @ 2024-08-27 16:29 UTC (permalink / raw)
To: gregkh, linux-staging, linux-kernel, ~lkcamp/patches
Fix alignment parenthesis in _rtl92e_read_eeprom_info
CHECK: Alignment should match open parenthesis
---
Changes in v2:
- Using tabs instead of spaces
Signed-off-by: Nilo Alexandre <n1lux.comp@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 b767dc00100aa..2d17d8e8898e7 100644
--- a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
+++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
@@ -322,7 +322,7 @@ static void _rtl92e_read_eeprom_info(struct net_device *dev)
if (priv->epromtype == EEPROM_93C46) {
if (!priv->autoload_fail_flag) {
usValue = rtl92e_eeprom_read(dev,
- EEPROM_TxPwDiff_CrystalCap >> 1);
+ EEPROM_TxPwDiff_CrystalCap >> 1);
priv->eeprom_ant_pwr_diff = usValue & 0x0fff;
priv->eeprom_crystal_cap = (usValue & 0xf000)
>> 12;
--
2.46.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] staging: rtl8192e: Fix alignment parenthesis
2024-08-27 16:29 [PATCH v2] staging: rtl8192e: Fix alignment parenthesis Nilo Alexandre
@ 2024-08-27 18:37 ` Philipp Hortmann
0 siblings, 0 replies; 2+ messages in thread
From: Philipp Hortmann @ 2024-08-27 18:37 UTC (permalink / raw)
To: Nilo Alexandre, gregkh, linux-staging, linux-kernel,
~lkcamp/patches
On 8/27/24 18:29, Nilo Alexandre wrote:
> Fix alignment parenthesis in _rtl92e_read_eeprom_info
>
> CHECK: Alignment should match open parenthesis
>
> ---
> Changes in v2:
> - Using tabs instead of spaces
>
> Signed-off-by: Nilo Alexandre <n1lux.comp@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 b767dc00100aa..2d17d8e8898e7 100644
> --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
> +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
> @@ -322,7 +322,7 @@ static void _rtl92e_read_eeprom_info(struct net_device *dev)
> if (priv->epromtype == EEPROM_93C46) {
> if (!priv->autoload_fail_flag) {
> usValue = rtl92e_eeprom_read(dev,
> - EEPROM_TxPwDiff_CrystalCap >> 1);
> + EEPROM_TxPwDiff_CrystalCap >> 1);
> priv->eeprom_ant_pwr_diff = usValue & 0x0fff;
> priv->eeprom_crystal_cap = (usValue & 0xf000)
> >> 12;
Hi Nilo,
please make your "Subject" line more unique. Consider that we may end up
with having dozen of commits like yours, all of them referring to
different removals and all without the necessary information to tell
what they differ in (except the driver/subsystem). So it would help if
you add the changed file or function to make it more unique.
Please answer the why in the description and not so much what you did.
Why do we need an empty line? Please use a dot to end the sentences.
I propose:
Align parenthesis to improve readability.
You can mention the tool which gave you the hint but you do not have to.
Thanks for your support.
Bye Philipp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-27 18:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-27 16:29 [PATCH v2] staging: rtl8192e: Fix alignment parenthesis Nilo Alexandre
2024-08-27 18:37 ` Philipp Hortmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox