[PATCH v4 6/7] staging: rtl8723bs: rtw_mlme: consolidate capability comparisons lines

From: Salman Alghamdi

Date: Mon Apr 27 2026 - 15:07:28 EST


Place capability comparisons on single lines.

Signed-off-by: Salman Alghamdi <me@xxxxxxxxxxxx>
---
drivers/staging/rtl8723bs/core/rtw_mlme.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c
index 47c0d176dbdc..7b40e24435e2 100644
--- a/drivers/staging/rtl8723bs/core/rtw_mlme.c
+++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c
@@ -367,10 +367,8 @@ int is_same_network(struct wlan_bssid_ex *src, struct wlan_bssid_ex *dst, u8 fea
return (src->ssid.ssid_length == dst->ssid.ssid_length) &&
((!memcmp(src->mac_address, dst->mac_address, ETH_ALEN))) &&
((!memcmp(src->ssid.ssid, dst->ssid.ssid, src->ssid.ssid_length))) &&
- ((s_cap & WLAN_CAPABILITY_IBSS) ==
- (d_cap & WLAN_CAPABILITY_IBSS)) &&
- ((s_cap & WLAN_CAPABILITY_ESS) ==
- (d_cap & WLAN_CAPABILITY_ESS));
+ ((s_cap & WLAN_CAPABILITY_IBSS) == (d_cap & WLAN_CAPABILITY_IBSS)) &&
+ ((s_cap & WLAN_CAPABILITY_ESS) == (d_cap & WLAN_CAPABILITY_ESS));
}

struct wlan_network *_rtw_find_same_network(struct __queue *scanned_queue,
--
2.54.0