* [PATCH v2 0/2] Staging: rtl8192e: Fix some code style issues
@ 2024-08-23 0:08 Gabriel Maciel Raad
2024-08-23 0:08 ` [PATCH v2 1/2] Staging: rtl8192e: Fix parenthesis alignment Gabriel Maciel Raad
2024-08-23 0:08 ` [PATCH v2 2/2] Staging: rtl8192e: Remove unnecessary blank line Gabriel Maciel Raad
0 siblings, 2 replies; 4+ messages in thread
From: Gabriel Maciel Raad @ 2024-08-23 0:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, linux-staging, linux-kernel, ~lkcamp/patches
Fix some code style issues in rtl_ps.c
Gabriel Maciel Raad (2):
Staging: rtl8192e: Fix parenthesis alignment
Staging: rtl8192e: Remove unnecessary blank line
drivers/staging/rtl8192e/rtl8192e/rtl_ps.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--
2.46.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/2] Staging: rtl8192e: Fix parenthesis alignment
2024-08-23 0:08 [PATCH v2 0/2] Staging: rtl8192e: Fix some code style issues Gabriel Maciel Raad
@ 2024-08-23 0:08 ` Gabriel Maciel Raad
2024-08-23 8:40 ` Dan Carpenter
2024-08-23 0:08 ` [PATCH v2 2/2] Staging: rtl8192e: Remove unnecessary blank line Gabriel Maciel Raad
1 sibling, 1 reply; 4+ messages in thread
From: Gabriel Maciel Raad @ 2024-08-23 0:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, linux-staging, linux-kernel, ~lkcamp/patches
Fix parenthesis alingment in rtl92e_leisure_ps_enter to silence the
following checkpatch.pl warning:
CHECK: Alignment should match open parenthesis
Signed-off-by: Gabriel Maciel Raad <ffunctor@gmail.com>
---
Changes in v2:
- Split the changes in two patches
---
drivers/staging/rtl8192e/rtl8192e/rtl_ps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_ps.c b/drivers/staging/rtl8192e/rtl8192e/rtl_ps.c
index 5aac9110bff6..1f881c27d4b4 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_ps.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_ps.c
@@ -204,7 +204,7 @@ void rtl92e_leisure_ps_enter(struct net_device *dev)
&priv->rtllib->pwr_save_ctrl;
if (!((priv->rtllib->iw_mode == IW_MODE_INFRA) &&
- (priv->rtllib->link_state == MAC80211_LINKED)))
+ (priv->rtllib->link_state == MAC80211_LINKED)))
return;
if (psc->bLeisurePs) {
--
2.46.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 2/2] Staging: rtl8192e: Remove unnecessary blank line
2024-08-23 0:08 [PATCH v2 0/2] Staging: rtl8192e: Fix some code style issues Gabriel Maciel Raad
2024-08-23 0:08 ` [PATCH v2 1/2] Staging: rtl8192e: Fix parenthesis alignment Gabriel Maciel Raad
@ 2024-08-23 0:08 ` Gabriel Maciel Raad
1 sibling, 0 replies; 4+ messages in thread
From: Gabriel Maciel Raad @ 2024-08-23 0:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, linux-staging, linux-kernel, ~lkcamp/patches
Remove unneeded blank line in rtl92e_leisure_ps_enter to silence the
folowing checkpatch.pl warning:
CHECK: Blank lines aren't necessary after an open brace '{'
Signed-off-by: Gabriel Maciel Raad <ffunctor@gmail.com>
---
Changes in v2:
- Split the changes in two patches
---
drivers/staging/rtl8192e/rtl8192e/rtl_ps.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_ps.c b/drivers/staging/rtl8192e/rtl8192e/rtl_ps.c
index 1f881c27d4b4..7b6247acf6f4 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_ps.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_ps.c
@@ -209,7 +209,6 @@ void rtl92e_leisure_ps_enter(struct net_device *dev)
if (psc->bLeisurePs) {
if (psc->lps_idle_count >= RT_CHECK_FOR_HANG_PERIOD) {
-
if (priv->rtllib->ps == RTLLIB_PS_DISABLED)
_rtl92e_ps_set_mode(dev, RTLLIB_PS_MBCAST | RTLLIB_PS_UNICAST);
} else {
--
2.46.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/2] Staging: rtl8192e: Fix parenthesis alignment
2024-08-23 0:08 ` [PATCH v2 1/2] Staging: rtl8192e: Fix parenthesis alignment Gabriel Maciel Raad
@ 2024-08-23 8:40 ` Dan Carpenter
0 siblings, 0 replies; 4+ messages in thread
From: Dan Carpenter @ 2024-08-23 8:40 UTC (permalink / raw)
To: Gabriel Maciel Raad
Cc: Greg Kroah-Hartman, linux-staging, linux-kernel, ~lkcamp/patches
On Thu, Aug 22, 2024 at 09:08:37PM -0300, Gabriel Maciel Raad wrote:
> Fix parenthesis alingment in rtl92e_leisure_ps_enter to silence the
> following checkpatch.pl warning:
>
> CHECK: Alignment should match open parenthesis
>
> Signed-off-by: Gabriel Maciel Raad <ffunctor@gmail.com>
> ---
> Changes in v2:
> - Split the changes in two patches
> ---
> drivers/staging/rtl8192e/rtl8192e/rtl_ps.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_ps.c b/drivers/staging/rtl8192e/rtl8192e/rtl_ps.c
> index 5aac9110bff6..1f881c27d4b4 100644
> --- a/drivers/staging/rtl8192e/rtl8192e/rtl_ps.c
> +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_ps.c
> @@ -204,7 +204,7 @@ void rtl92e_leisure_ps_enter(struct net_device *dev)
> &priv->rtllib->pwr_save_ctrl;
>
> if (!((priv->rtllib->iw_mode == IW_MODE_INFRA) &&
> - (priv->rtllib->link_state == MAC80211_LINKED)))
> + (priv->rtllib->link_state == MAC80211_LINKED)))
> return;
It would be nicer to write this as:
if (priv->rtllib->iw_mode != IW_MODE_INFRA ||
priv->rtllib->link_state != MAC80211_LINKED)
return;
regards,
dan carpenter
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-08-23 8:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-23 0:08 [PATCH v2 0/2] Staging: rtl8192e: Fix some code style issues Gabriel Maciel Raad
2024-08-23 0:08 ` [PATCH v2 1/2] Staging: rtl8192e: Fix parenthesis alignment Gabriel Maciel Raad
2024-08-23 8:40 ` Dan Carpenter
2024-08-23 0:08 ` [PATCH v2 2/2] Staging: rtl8192e: Remove unnecessary blank line Gabriel Maciel Raad
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox