]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: rtl8723bs: place constant to right of logical test
authorBryant Boatright <bryant.boatright@proton.me>
Tue, 24 Jun 2025 18:51:59 +0000 (18:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Jun 2025 17:14:09 +0000 (19:14 +0200)
Adhere to Linux kernel coding style.

Reported by checkpatch:

WARNING: Comparisons should place the constant on the right side of the
test

Signed-off-by: Bryant Boatright <bryant.boatright@proton.me>
Link: https://lore.kernel.org/r/aFrzy5UdqURaTrlP@ubuntu-desk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/os_intfs.c

index 3cbfc305ede34eade5897e855041f1b5750a283b..909697accb661132816eef8965ffa56bfe0474ae 100644 (file)
@@ -922,7 +922,7 @@ static int pm_netdev_open(struct net_device *pnetdev, u8 bnormal)
                        mutex_unlock(&(adapter_to_dvobj(padapter)->hw_init_mutex));
                }
        } else {
-               status =  (_SUCCESS == ips_netdrv_open(padapter)) ? (0) : (-1);
+               status =  (ips_netdrv_open(padapter) == _SUCCESS) ? (0) : (-1);
        }
 
        return status;