staging: rtl8723bs: hal: Change return type to void from u8
PATCH 1/1 staging: rtl8723bs: hal: Change return type to void from u8
The function HalQueryTxOQTBufferStatus8723BSdio always returns true and caller functions are not bother about return status.
Change return type to void.
Signed-off-by Hariprasad Kelam <[email protected]>
--- drivers/staging/rtl8723bs/hal/sdio_ops.c | 3 +-- drivers/staging/rtl8723bs/include/sdio_ops.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)
drivers/staging/rtl8723bs/hal/sdio_ops.c +1 -2
@@ -1194,12 +1194,11 @@ u8 HalQueryTxBufferStatus8723BSdio(struct adapter *adapter)/* Description: */ /* Query SDIO Local register to get the current number of TX OQT Free Space. */ /* */ -u8 HalQueryTxOQTBufferStatus8723BSdio (struct adapter *adapter) +void HalQueryTxOQTBufferStatus8723BSdio (struct adapter *adapter) {struct hal_com_data *haldata =GET_HAL_DATA (adapter); haldata->SdioTxOQTFreeSpace =SdioLocalCmd52Read1Byte (adapter,SDIO_REG_OQT_FREE_PG ); -return true; }#if defined(CONFIG_WOWLAN ) || defined(CONFIG_AP_WOWLAN )
drivers/staging/rtl8723bs/include/sdio_ops.h +1 -1
@@ -33,7 +33,7 @@ extern void InitSysInterrupt8723BSdio(struct adapter *padapter);extern void EnableInterrupt8723BSdio (struct adapter *padapter);extern void DisableInterrupt8723BSdio (struct adapter *padapter);extern u8 HalQueryTxBufferStatus8723BSdio (struct adapter *padapter); -extern u8 HalQueryTxOQTBufferStatus8723BSdio (struct adapter *padapter); +extern void HalQueryTxOQTBufferStatus8723BSdio (struct adapter *padapter);#if defined(CONFIG_WOWLAN ) || defined(CONFIG_AP_WOWLAN )extern void ClearInterrupt8723BSdio (struct adapter *padapter);#endif /* CONFIG_WOWLAN */
Signature · 1 line
2.7.4