Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1730018

[PATCH 03/10] staging: rtl8723bs: Add spaces around '?', '==', '||', '!='

From Harsha Sharma <harshasharmaiitr@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 03/10] staging: rtl8723bs: Add spaces around '?', '==', '||', '!='
Date 2017-09-10 19:30 +0200
Message-ID <uoeds-75y-5@gated-at.bofh.it> (permalink)
References <uocbE-5CS-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Use spaces around most binary operators

Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
---
 drivers/staging/rtl8723bs/os_dep/os_intfs.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
index 18f0ac2..5ceccd7 100644
--- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c
+++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
@@ -1140,7 +1140,7 @@ static int pm_netdev_open(struct net_device *pnetdev, u8 bnormal)
 		}
 	}
 	else
-		status =  (_SUCCESS == ips_netdrv_open(padapter))?(0):(-1);
+		status =  (_SUCCESS == ips_netdrv_open(padapter)) ? (0) : (-1);
 
 	return status;
 }
@@ -1262,7 +1262,7 @@ void rtw_dev_unload(struct adapter *padapter)
 			rtw_btcoex_IpsNotify(padapter, pwrctl->ips_mode_req);
 #ifdef CONFIG_WOWLAN
 			if (pwrctl->bSupportRemoteWakeup == true &&
-				pwrctl->wowlan_mode ==true) {
+				pwrctl->wowlan_mode == true) {
 				DBG_871X_LEVEL(_drv_always_, "%s bSupportRemoteWakeup ==true  do not run rtw_hal_deinit()\n", __func__);
 			}
 			else
@@ -1524,7 +1524,7 @@ int rtw_suspend_common(struct adapter *padapter)
 	while (pwrpriv->bips_processing == true)
 		msleep(1);
 
-	if ((!padapter->bup) || (padapter->bDriverStopped)||(padapter->bSurpriseRemoved))
+	if ((!padapter->bup) || (padapter->bDriverStopped) || (padapter->bSurpriseRemoved))
 	{
 		DBG_871X("%s bup =%d bDriverStopped =%d bSurpriseRemoved = %d\n", __func__
 			, padapter->bup, padapter->bDriverStopped, padapter->bSurpriseRemoved);
@@ -1671,7 +1671,7 @@ int rtw_resume_process_wow(struct adapter *padapter)
 		DBG_871X_LEVEL(_drv_always_, "%s: ### ERROR ### wowlan_mode =%d\n", __func__, pwrpriv->wowlan_mode);
 	}
 
-	if (padapter->pid[1]!= 0) {
+	if (padapter->pid[1] != 0) {
 		DBG_871X("pid[1]:%d\n", padapter->pid[1]);
 		rtw_signal_process(padapter->pid[1], SIGUSR2);
 	}
@@ -1774,7 +1774,7 @@ int rtw_resume_process_ap_wow(struct adapter *padapter)
 			rtw_netif_wake_queue(pnetdev);
 	}
 
-	if (padapter->pid[1]!= 0) {
+	if (padapter->pid[1] != 0) {
 		DBG_871X("pid[1]:%d\n", padapter->pid[1]);
 		rtw_signal_process(padapter->pid[1], SIGUSR2);
 	}
@@ -1842,7 +1842,7 @@ static int rtw_resume_process_normal(struct adapter *padapter)
 	netif_device_attach(pnetdev);
 	netif_carrier_on(pnetdev);
 
-	if (padapter->pid[1]!= 0) {
+	if (padapter->pid[1] != 0) {
 		DBG_871X("pid[1]:%d\n", padapter->pid[1]);
 		rtw_signal_process(padapter->pid[1], SIGUSR2);
 	}
-- 
1.9.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 00/10] staging: rtl8723bs: Follow linux-kernel coding style Harsha Sharma <harshasharmaiitr@gmail.com> - 2017-09-10 17:20 +0200
  [PATCH 03/10] staging: rtl8723bs: Add spaces around '?', '==', '||', '!=' Harsha Sharma <harshasharmaiitr@gmail.com> - 2017-09-10 19:30 +0200
    Re: [Outreachy kernel] [PATCH 03/10] staging: rtl8723bs: Add spaces  around '?', '==', '||', '!=' Julia Lawall <julia.lawall@lip6.fr> - 2017-09-10 22:10 +0200
  [PATCH 04/10] staging: rtl8723bs: Remove unnecessary spaces at the start of line Harsha Sharma <harshasharmaiitr@gmail.com> - 2017-09-10 19:30 +0200
    Re: [Outreachy kernel] [PATCH 04/10] staging: rtl8723bs: Remove  unnecessary spaces at the start of line Julia Lawall <julia.lawall@lip6.fr> - 2017-09-10 22:40 +0200
  [PATCH 05/10] staging: rtl8723bs: Add space between concatenated strings Harsha Sharma <harshasharmaiitr@gmail.com> - 2017-09-10 19:40 +0200
    Re: [Outreachy kernel] [PATCH 05/10] staging: rtl8723bs: Add space  between concatenated strings Julia Lawall <julia.lawall@lip6.fr> - 2017-09-11 13:20 +0200
  [PATCH 06/10] staging: rtl8723bs: Add space after ',' Harsha Sharma <harshasharmaiitr@gmail.com> - 2017-09-10 19:40 +0200
    Re: [Outreachy kernel] [PATCH 06/10] staging: rtl8723bs: Add space  after ',' Julia Lawall <julia.lawall@lip6.fr> - 2017-09-11 13:20 +0200
    Re: [Outreachy kernel] [PATCH 06/10] staging: rtl8723bs: Add space  after ',' Greg KH <gregkh@linuxfoundation.org> - 2017-09-11 18:50 +0200
  [PATCH 08/10] staging: rtl8723bs: Remove unnecessary space Harsha Sharma <harshasharmaiitr@gmail.com> - 2017-09-10 19:40 +0200
  [PATCH 07/10] staging: rtl8723bs: Removed unneccesary space Harsha Sharma <harshasharmaiitr@gmail.com> - 2017-09-10 19:40 +0200
    Re: [PATCH 07/10] staging: rtl8723bs: Removed unneccesary space Greg KH <gregkh@linuxfoundation.org> - 2017-09-11 18:50 +0200
  [PATCH 10/10] staging: rtl8723bs: Remove unnecessary blank lines Harsha Sharma <harshasharmaiitr@gmail.com> - 2017-09-10 19:50 +0200
  [PATCH 09/10] staging: rtl8723bs: Remove unneccesary braces and change position of open brace Harsha Sharma <harshasharmaiitr@gmail.com> - 2017-09-10 19:50 +0200
    [PATCH] spelling.txt: Add "unnecessary" typo variants Joe Perches <joe@perches.com> - 2017-09-10 22:20 +0200
  [PATCH v2 07/10] staging: rtl8723bs: Remove unneccesary space Harsha Sharma <harshasharmaiitr@gmail.com> - 2017-09-12 12:20 +0200
    Re: [Outreachy kernel] [PATCH v2 07/10] staging: rtl8723bs: Remove  unneccesary space Julia Lawall <julia.lawall@lip6.fr> - 2017-09-12 12:30 +0200
  [PATCH v3 07/10] staging: rtl8723bs: Remove unnecessary space Harsha Sharma <harshasharmaiitr@gmail.com> - 2017-09-12 12:40 +0200
  [PATCH v2 06/10] staging: rtl8723bs: Add space after ',' Harsha Sharma <harshasharmaiitr@gmail.com> - 2017-09-12 15:40 +0200
    Re: [PATCH v2 06/10] staging: rtl8723bs: Add space after ',' Greg KH <gregkh@linuxfoundation.org> - 2017-09-12 22:50 +0200

csiph-web