Skip to contentSkip to conversation

staging: rtl8723bs: split multiple assignment in osdep_service.c

PATCH New Juyeong Jun 1 participant 1 message Feb 11 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8723bs: split multiple assignment in osdep_service.c

v2:
- Fix incorrect Author email in commit

Avoid multiple assignments in a single statement.
No functional change.

---
 drivers/staging/rtl8723bs/os_dep/osdep_service.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/rtl8723bs/os_dep/osdep_service.c +2 -1
index a00f9f0c85c5..19b378b49809 100644
@@ -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;
 	}
 
Signature · 1 line
2.34.1