immortalwrt-mt798x/package/kernel/mt7601u-ap/patches/010-fix-control-reaches-end-of-non-void.patch
Tianling Shen c741baa9e8
treewide: move kernel pacakges from ctcgfw to kernel
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-23 17:47:37 +08:00

20 lines
570 B
Diff

--- a/mcu/rtmp_mcu.c
+++ b/mcu/rtmp_mcu.c
@@ -31,6 +31,7 @@
INT MCUBurstWrite(PRTMP_ADAPTER pAd, UINT32 Offset, UINT32 *Data, UINT32 Cnt)
{
RTUSBMultiWrite_nBytes(pAd, Offset, Data, Cnt * 4, 64);
+ return 0;
}
INT MCURandomWrite(PRTMP_ADAPTER pAd, RTMP_REG_PAIR *RegPair, UINT32 Num)
@@ -39,6 +40,8 @@ INT MCURandomWrite(PRTMP_ADAPTER pAd, RTMP_REG_PAIR *RegPair, UINT32 Num)
for (Index = 0; Index < Num; Index++)
RTMP_IO_WRITE32(pAd, RegPair->Register, RegPair->Value);
+
+ return 0;
}
VOID ChipOpsMCUHook(PRTMP_ADAPTER pAd, enum MCU_TYPE MCUType)