mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-05 00:53:32 +08:00
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:
parent
d9b2b7375d
commit
ed6d1cfe86
@ -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 */
|
@ -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 */
|
Loading…
x
Reference in New Issue
Block a user