[PATCH] staging: rtl8723bs: fix coding style issues in osdep_service.c

From: Nayana Mariyappa

Date: Fri Jan 09 2026 - 04:41:42 EST


Fix block comment alignment, remove extra blank lines, add a blank
line after declarations, and avoid multiple assignments to comply
with kernel coding style.

No functional changes.

Signed-off-by: Nayana Mariyappa <nayana.mariyappa@xxxxxxxxx>
---
drivers/staging/rtl8723bs/os_dep/osdep_service.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/osdep_service.c b/drivers/staging/rtl8723bs/os_dep/osdep_service.c
index a00f9f0c85c5..c082a0359064 100644
--- a/drivers/staging/rtl8723bs/os_dep/osdep_service.c
+++ b/drivers/staging/rtl8723bs/os_dep/osdep_service.c
@@ -6,10 +6,10 @@
******************************************************************************/
#include <drv_types.h>

-/*
-* Translate the OS dependent @param error_code to OS independent RTW_STATUS_CODE
-* @return: one of RTW_STATUS_CODE
-*/
+/**
+ * Translate the OS dependent @param error_code to OS independent RTW_STATUS_CODE
+ * @return: one of RTW_STATUS_CODE
+ */
inline int RTW_STATUS_CODE(int error_code)
{
if (error_code >= 0)
@@ -152,7 +152,6 @@ void rtw_buf_update(u8 **buf, u32 *buf_len, u8 *src, u32 src_len)
kfree(ori);
}

-
/**
* rtw_cbuf_full - test if cbuf is full
* @cbuf: pointer of struct rtw_cbuf
@@ -204,6 +203,7 @@ bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf)
void *rtw_cbuf_pop(struct rtw_cbuf *cbuf)
{
void *buf;
+
if (rtw_cbuf_empty(cbuf))
return NULL;

@@ -226,7 +226,8 @@ struct rtw_cbuf *rtw_cbuf_alloc(u32 size)
cbuf = rtw_malloc(struct_size(cbuf, bufs, size));

if (cbuf) {
- cbuf->write = cbuf->read = 0;
+ cbuf->write = 0;
+ cbuf->read = 0;
cbuf->size = size;
}

--
2.43.0