Commit e7df51e0 authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman

staging: rtl8712: r8712_construct_txaggr_cmd_desc(): Change return type

Change return type of r8712_construct_txaggr_cmd_desc from u8 to void
(and remove its return statement) as it always returns _SUCCESS and its
return value is never stored, checked or otherwise used.
Signed-off-by: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190809052353.5308-7-nishkadg.linux@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9958e0e5
...@@ -246,7 +246,7 @@ void r8712_do_queue_select(struct _adapter *padapter, ...@@ -246,7 +246,7 @@ void r8712_do_queue_select(struct _adapter *padapter,
} }
#ifdef CONFIG_R8712_TX_AGGR #ifdef CONFIG_R8712_TX_AGGR
u8 r8712_construct_txaggr_cmd_desc(struct xmit_buf *pxmitbuf) void r8712_construct_txaggr_cmd_desc(struct xmit_buf *pxmitbuf)
{ {
struct tx_desc *ptx_desc = (struct tx_desc *)pxmitbuf->pbuf; struct tx_desc *ptx_desc = (struct tx_desc *)pxmitbuf->pbuf;
...@@ -260,8 +260,6 @@ u8 r8712_construct_txaggr_cmd_desc(struct xmit_buf *pxmitbuf) ...@@ -260,8 +260,6 @@ u8 r8712_construct_txaggr_cmd_desc(struct xmit_buf *pxmitbuf)
/* dw1 */ /* dw1 */
ptx_desc->txdw1 |= cpu_to_le32((0x13 << QSEL_SHT) & 0x00001f00); ptx_desc->txdw1 |= cpu_to_le32((0x13 << QSEL_SHT) & 0x00001f00);
return _SUCCESS;
} }
u8 r8712_construct_txaggr_cmd_hdr(struct xmit_buf *pxmitbuf) u8 r8712_construct_txaggr_cmd_hdr(struct xmit_buf *pxmitbuf)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment