[PATCH] staging: rtl8723bs: Break long lines in rtw_sta_mgt.c
From: Malavya Raval
Date: Wed Mar 18 2026 - 22:51:55 EST
From: MalavyaRaval <malavyaraval@xxxxxxxxx>
Split long lines in rtw_sta_mgt.c to adhere to kernel coding style.
Signed-off-by: MalavyaRaval <malavyaraval@xxxxxxxxx>
---
drivers/staging/rtl8723bs/core/rtw_sta_mgt.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c b/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c
index 9d222ae87d79..40a1dc9658c8 100644
--- a/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c
+++ b/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c
@@ -54,7 +54,8 @@ u32 _rtw_init_sta_priv(struct sta_priv *pstapriv)
struct sta_info *psta;
s32 i;
- pstapriv->pallocated_stainfo_buf = vzalloc(sizeof(struct sta_info) * NUM_STA + 4);
+ pstapriv->pallocated_stainfo_buf = vzalloc(sizeof(*pstapriv->pallocated_stainfo_buf) *
+ NUM_STA + 4);
if (!pstapriv->pallocated_stainfo_buf)
return _FAIL;
@@ -105,7 +106,8 @@ u32 _rtw_init_sta_priv(struct sta_priv *pstapriv)
inline int rtw_stainfo_offset(struct sta_priv *stapriv, struct sta_info *sta)
{
- int offset = (((u8 *)sta) - stapriv->pstainfo_buf) / sizeof(struct sta_info);
+ int offset = (((u8 *)sta) - stapriv->pstainfo_buf) /
+ sizeof(struct sta_info);
return offset;
}
--
2.43.0