Remove wrappers around vmalloc()

This commit is contained in:
kimocoder
2019-02-14 17:59:53 +01:00
parent 78b58d1213
commit d30cd10cf0
4 changed files with 8 additions and 38 deletions

View File

@@ -3091,9 +3091,9 @@ u32 rtw_read_efuse_from_file(const char *path, u8 *buf, int map_size)
goto exit;
}
file_data = rtw_vmalloc(file_size);
file_data = vmalloc(file_size);
if (!file_data) {
RTW_ERR("%s rtw_vmalloc(%d) fail\n", __func__, file_size);
RTW_ERR("%s vmalloc(%d) fail\n", __func__, file_size);
goto exit;
}
@@ -3103,9 +3103,9 @@ u32 rtw_read_efuse_from_file(const char *path, u8 *buf, int map_size)
goto exit;
}
map = rtw_vmalloc(map_size);
map = vmalloc(map_size);
if (!map) {
RTW_ERR("%s rtw_vmalloc(%d) fail\n", __func__, map_size);
RTW_ERR("%s vmalloc(%d) fail\n", __func__, map_size);
goto exit;
}
_rtw_memset(map, 0xff, map_size);