Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8712: r8712_dump_aggr_xframe(): Change type to void

Change return type of r8712_dump_aggr_xframe from u8 to void as it
always returns _SUCCESS and its return value is never used.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190813044638.16348-4-nishkadg.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Nishka Dasgupta and committed by
Greg Kroah-Hartman
ca8a0a49 b849e9a4

+4 -6
+2 -4
drivers/staging/rtl8712/rtl8712_xmit.c
··· 352 352 (((struct tx_desc *)pxmitbuf->pbuf)->txdw0 & 0x0000ffff); 353 353 } 354 354 355 - u8 r8712_dump_aggr_xframe(struct xmit_buf *pxmitbuf, 356 - struct xmit_frame *pxmitframe) 355 + void r8712_dump_aggr_xframe(struct xmit_buf *pxmitbuf, 356 + struct xmit_frame *pxmitframe) 357 357 { 358 358 struct _adapter *padapter = pxmitframe->padapter; 359 359 struct dvobj_priv *pdvobj = &padapter->dvobjpriv; ··· 390 390 } 391 391 r8712_write_port(pxmitframe->padapter, RTL8712_DMA_H2CCMD, 392 392 total_length + TXDESC_SIZE, (u8 *)pxmitframe); 393 - 394 - return _SUCCESS; 395 393 } 396 394 397 395 #endif
+2 -2
drivers/staging/rtl8712/rtl8712_xmit.h
··· 104 104 #ifdef CONFIG_R8712_TX_AGGR 105 105 void r8712_xmitframe_aggr_1st(struct xmit_buf *pxmitbuf, 106 106 struct xmit_frame *pxmitframe); 107 - u8 r8712_dump_aggr_xframe(struct xmit_buf *pxmitbuf, 108 - struct xmit_frame *pxmitframe); 107 + void r8712_dump_aggr_xframe(struct xmit_buf *pxmitbuf, 108 + struct xmit_frame *pxmitframe); 109 109 #endif 110 110 111 111 #endif