mt_wifi: fix wrong return type

This fixes the error that occurred when compiling with GCC 10.
The return type of ExtEventPhyIcsUnSolicitDataHandler is void so we cannot return NDIS_STATUS_FAILURE here.

Signed-off-by: Ethan Zuo <yuxuan.zuo@outlook.com>
This commit is contained in:
Ethan Zuo 2024-10-21 15:21:29 +00:00 committed by hanwckf
parent d9b2b7375d
commit ed6d1cfe86
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- a/mt_wifi/embedded/mcu/andes_mt.c 2022-11-27 21:58:55.000000000 +0800
+++ b/mt_wifi/embedded/mcu/andes_mt.c 2024-05-07 12:56:43.337033430 +0800
@@ -1359,7 +1359,7 @@ VOID ExtEventPhyIcsUnSolicitDataHandler(
msg_len = pIcsEvent->u4DataLen * sizeof(UINT32) + sizeof(FW_BIN_LOG_HDR_T);
if (os_alloc_mem(pAd, (UCHAR **)&buffer, msg_len) != NDIS_STATUS_SUCCESS)
- return NDIS_STATUS_FAILURE;
+ return;
log_hdr = (P_FW_BIN_LOG_HDR_T)buffer;
/* prepare ICS header */

View File

@ -0,0 +1,11 @@
--- a/mt_wifi/embedded/mcu/andes_mt.c 2022-11-27 21:58:55.000000000 +0800
+++ b/mt_wifi/embedded/mcu/andes_mt.c 2024-05-07 12:56:43.337033430 +0800
@@ -1359,7 +1359,7 @@ VOID ExtEventPhyIcsUnSolicitDataHandler(
msg_len = pIcsEvent->u4DataLen * sizeof(UINT32) + sizeof(FW_BIN_LOG_HDR_T);
if (os_alloc_mem(pAd, (UCHAR **)&buffer, msg_len) != NDIS_STATUS_SUCCESS)
- return NDIS_STATUS_FAILURE;
+ return;
log_hdr = (P_FW_BIN_LOG_HDR_T)buffer;
/* prepare ICS header */