mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-08 07:14:03 +00:00
remove rtw_mfree2d() function
It is just a wrapper around kfree(), so remove it and just call kfree() instead. Adaptation of: https://lore.kernel.org/r/20210730092417.1014392-7-gregkh@linuxfoundation.org
This commit is contained in:
committed by
Carlos Garcés
parent
1401b54fd0
commit
ac1790da7c
@@ -1178,7 +1178,7 @@ Hal_EfusePowerSwitch8192E(
|
||||
if (bWrite == _TRUE) {
|
||||
/* Enable LDO 2.5V before read/write action */
|
||||
tempval = rtw_read8(pAdapter, EFUSE_TEST + 3);
|
||||
tempval &= 0x07; /* 0x34[30:27] = 4<><34>1110 => LDOE25 voltage select to 2.25V Suggested by SD1 Jackie & DD -Tm_lin */
|
||||
tempval &= 0x07; /* 0x34[30:27] = 4<><34>1110 => LDOE25 voltage select to 2.25V Suggested by SD1 Jackie & DD -Tm_lin */
|
||||
/* tempval |= (VOLTAGE_V25 << 4); */
|
||||
tempval |= 0x70;
|
||||
rtw_write8(pAdapter, EFUSE_TEST + 3, (tempval | 0x80));
|
||||
@@ -1429,8 +1429,7 @@ exit:
|
||||
if (efuseTbl)
|
||||
rtw_mfree(efuseTbl, EFUSE_MAP_LEN_8192E);
|
||||
|
||||
if (eFuseWord)
|
||||
rtw_mfree2d((void *)eFuseWord, EFUSE_MAX_SECTION_8192E, EFUSE_MAX_WORD_UNIT, sizeof(u16));
|
||||
kfree(eFuseWord);
|
||||
}
|
||||
|
||||
static VOID
|
||||
|
||||
Reference in New Issue
Block a user