Linux kernel staging patches
 help / color / mirror / Atom feed
From: Aymen Khalfa <a.khalfa.1012@gmail.com>
To: gregkh@linuxfoundation.org, hdegoede@redhat.com,
	Larry.Finger@lwfinger.net
Cc: linux-staging@lists.linux.dev, Aymen Khalfa <a.khalfa.1012@gmail.com>
Subject: [PATCH 1/4] drivers: staging: rtl8723bs: Fix braces coding style issue.
Date: Wed, 16 Oct 2024 14:56:27 +0200	[thread overview]
Message-ID: <20241016125630.2479807-2-a.khalfa.1012@gmail.com> (raw)
In-Reply-To: <20241016125630.2479807-1-a.khalfa.1012@gmail.com>

- Remove unnecessary braces.

Signed-off-by: Aymen Khalfa <a.khalfa.1012@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
index dbfcbac3d855..1ced6f7ac552 100644
--- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
+++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
@@ -56,9 +56,9 @@ int _ips_leave(struct adapter *padapter)
 		pwrpriv->ips_leave_cnts++;
 
 		result = rtw_ips_pwr_up(padapter);
-		if (result == _SUCCESS) {
+		if (result == _SUCCESS)
 			pwrpriv->rf_pwrstate = rf_on;
-		}
+
 		pwrpriv->bips_processing = false;
 
 		pwrpriv->bkeepfwalive = false;
@@ -556,9 +556,9 @@ void LeaveAllPowerSaveMode(struct adapter *Adapter)
 
 		LPS_Leave_check(Adapter);
 	} else {
-		if (adapter_to_pwrctl(Adapter)->rf_pwrstate == rf_off) {
+		if (adapter_to_pwrctl(Adapter)->rf_pwrstate == rf_off)
 			ips_leave(Adapter);
-		}
+
 	}
 }
 
-- 
2.34.1


  reply	other threads:[~2024-10-16 12:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-16 12:56 [PATCH 0/4] Fix coding style issues Aymen Khalfa
2024-10-16 12:56 ` Aymen Khalfa [this message]
2024-10-16 14:29   ` [PATCH 1/4] drivers: staging: rtl8723bs: Fix braces coding style issue Dan Carpenter
2024-10-16 12:56 ` [PATCH 2/4] drivers: staging: rtl8723bs: Fix space " Aymen Khalfa
2024-10-16 14:30   ` Dan Carpenter
2024-10-16 12:56 ` [PATCH 3/4] drivers: staging: rtl8723bs: Fix missing blank line after declaration " Aymen Khalfa
2024-10-16 12:56 ` [PATCH 4/4] drivers: staging: rtl8723bs: Fix comment alignment " Aymen Khalfa

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=20241016125630.2479807-2-a.khalfa.1012@gmail.com \
    --to=a.khalfa.1012@gmail.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=hdegoede@redhat.com \
    --cc=linux-staging@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox