Skip to contentSkip to conversation

staging: rtl8723bs: Place constant at the right.

PATCH In review Shreeya Patel 3 participants 3 messages Jul 8, 2017 – Jul 9, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8723bs: Place constant at the right.

Move constant to the right of a relational operator. This coding style is more common for the kernel code.

Problem found by checkpatch.

---
 drivers/staging/rtl8723bs/core/rtw_btcoex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/core/rtw_btcoex.c +1 -1
index 3c5cb78..01f78d1 100644
@@ -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);
 	}
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 9 lines · Shreeya Patel

Move constant to the right of a relational operator. This coding style is more common for the kernel code.

Problem found by checkpatch.

---
 drivers/staging/rtl8723bs/core/rtw_btcoex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Is the outreachy application process happening right now? If not, please send this to the proper mailing lists, this one isn't to be used for normal patch submissions.

thanks,

greg k-h

#2 lore raw
Quoted 6 lines · Greg KH
Quoted 5 lines · Shreeya Patel

Move constant to the right of a relational operator. This coding style is more common for the kernel code.

Problem found by checkpatch.

Quoted 8 lines
Quoted 4 lines
---
 drivers/staging/rtl8723bs/core/rtw_btcoex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Is the outreachy application process happening right now? If not, please send this to the proper mailing lists, this one isn't to be used for normal patch submissions.

Not until September.

julia

Quoted 12 lines

thanks,

greg k-h

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170709062002.GC8739%40kroah.com.
For more options, visit https://groups.google.com/d/optout.