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


Groups > linux.kernel > #1683645 > unrolled thread

[PATCH] staging: rtl8723bs: Place constant at the right.

Started byShreeya Patel <shreeya.patel23498@gmail.com>
First post2017-07-08 22:00 +0200
Last post2017-07-08 22:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] staging: rtl8723bs: Place constant at the right. Shreeya Patel <shreeya.patel23498@gmail.com> - 2017-07-08 22:00 +0200

#1683645 — [PATCH] staging: rtl8723bs: Place constant at the right.

FromShreeya Patel <shreeya.patel23498@gmail.com>
Date2017-07-08 22:00 +0200
Subject[PATCH] staging: rtl8723bs: Place constant at the right.
Message-ID<u143v-6mq-13@gated-at.bofh.it>
Move constant to the right of a relational operator.
This coding style is more common for the kernel code.

Problem found by checkpatch.

Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_btcoex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_btcoex.c b/drivers/staging/rtl8723bs/core/rtw_btcoex.c
index 3c5cb78..01f78d1 100644
--- a/drivers/staging/rtl8723bs/core/rtw_btcoex.c
+++ b/drivers/staging/rtl8723bs/core/rtw_btcoex.c
@@ -55,7 +55,7 @@ void rtw_btcoex_ConnectNotify(struct adapter *padapter, u8 action)
 
 void rtw_btcoex_MediaStatusNotify(struct adapter *padapter, u8 mediaStatus)
 {
-	if ((RT_MEDIA_CONNECT == mediaStatus)
+	if ((mediaStatus == RT_MEDIA_CONNECT)
 		&& (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == true)) {
 		rtw_hal_set_hwreg(padapter, HW_VAR_DL_RSVD_PAGE, NULL);
 	}
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web