]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: rtl8723bs: move logical operators to end of previous line
authorNikolay Kulikov <nikolayof23@gmail.com>
Mon, 23 Mar 2026 15:06:05 +0000 (18:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Mar 2026 08:31:18 +0000 (10:31 +0200)
Change the position of logical operators '||' and remove unnecessary
curly braces around single expression to fix checkpatch.pl warnings.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260323150650.7168-4-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_ioctl_set.c

index d92ec9949d00181c007b16330cacef737fd44c58..eb4a32a998aeec6d3b8ccc40f14cdf377759f849 100644 (file)
@@ -11,12 +11,10 @@ u8 rtw_validate_bssid(u8 *bssid)
 {
        u8 ret = true;
 
-       if (is_zero_mac_addr(bssid)
-               || is_broadcast_mac_addr(bssid)
-               || is_multicast_mac_addr(bssid)
-       ) {
+       if (is_zero_mac_addr(bssid) ||
+           is_broadcast_mac_addr(bssid) ||
+           is_multicast_mac_addr(bssid))
                ret = false;
-       }
 
        return ret;
 }