Skip to content

Commit da6c337

Browse files
meritissimo1gregkh
authored andcommitted
staging: rtl8723bs: change pointer initialization style
Separated pdata and ptail initialization for clarity and to avoid potential issues. Signed-off-by: Marcelo Moreira <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 642aadf commit da6c337

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/staging/rtl8723bs/core/rtw_xmit.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,8 @@ struct xmit_buf *rtw_alloc_xmitbuf_ext(struct xmit_priv *pxmitpriv)
14671467
pxmitbuf->priv_data = NULL;
14681468

14691469
pxmitbuf->len = 0;
1470-
pxmitbuf->pdata = pxmitbuf->ptail = pxmitbuf->phead;
1470+
pxmitbuf->pdata = pxmitbuf->phead;
1471+
pxmitbuf->ptail = pxmitbuf->phead;
14711472
pxmitbuf->agg_num = 1;
14721473

14731474
if (pxmitbuf->sctx)
@@ -1526,7 +1527,8 @@ struct xmit_buf *rtw_alloc_xmitbuf(struct xmit_priv *pxmitpriv)
15261527
pxmitbuf->priv_data = NULL;
15271528

15281529
pxmitbuf->len = 0;
1529-
pxmitbuf->pdata = pxmitbuf->ptail = pxmitbuf->phead;
1530+
pxmitbuf->pdata = pxmitbuf->phead;
1531+
pxmitbuf->ptail = pxmitbuf->phead;
15301532
pxmitbuf->agg_num = 0;
15311533
pxmitbuf->pg_num = 0;
15321534

0 commit comments

Comments
 (0)