]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: rtl8723bs: Place constant at the right.
authorShreeya Patel <shreeya.patel23498@gmail.com>
Sat, 8 Jul 2017 19:58:25 +0000 (01:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jul 2017 06:40:58 +0000 (08:40 +0200)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_btcoex.c

index 3c5cb78b52ead09a7b3c7d2a7d099149638f41d4..01f78d1671de4ed7bafd70a717b7048861adb4d4 100644 (file)
@@ -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);
        }