mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-09-19 20:50:52 +00:00
Removed some file functions
This commit is contained in:
parent
24df579fcf
commit
48ddf9727b
@ -2302,15 +2302,8 @@ static int storeToFile(const char *path, u8 *buf, u32 sz)
|
|||||||
*/
|
*/
|
||||||
int rtw_is_file_readable(const char *path)
|
int rtw_is_file_readable(const char *path)
|
||||||
{
|
{
|
||||||
#ifdef PLATFORM_LINUX
|
|
||||||
if (isFileReadable(path, NULL) == 0)
|
|
||||||
return _TRUE;
|
|
||||||
else
|
|
||||||
return _FALSE;
|
|
||||||
#else
|
|
||||||
/* Todo... */
|
/* Todo... */
|
||||||
return _FALSE;
|
return _FALSE;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -2341,13 +2334,8 @@ int rtw_is_file_readable_with_size(const char *path, u32 *sz)
|
|||||||
*/
|
*/
|
||||||
int rtw_retrieve_from_file(const char *path, u8 *buf, u32 sz)
|
int rtw_retrieve_from_file(const char *path, u8 *buf, u32 sz)
|
||||||
{
|
{
|
||||||
#ifdef PLATFORM_LINUX
|
|
||||||
int ret = retriveFromFile(path, buf, sz);
|
|
||||||
return ret >= 0 ? ret : 0;
|
|
||||||
#else
|
|
||||||
/* Todo... */
|
/* Todo... */
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -2359,13 +2347,8 @@ int rtw_retrieve_from_file(const char *path, u8 *buf, u32 sz)
|
|||||||
*/
|
*/
|
||||||
int rtw_store_to_file(const char *path, u8 *buf, u32 sz)
|
int rtw_store_to_file(const char *path, u8 *buf, u32 sz)
|
||||||
{
|
{
|
||||||
#ifdef PLATFORM_LINUX
|
|
||||||
int ret = storeToFile(path, buf, sz);
|
|
||||||
return ret >= 0 ? ret : 0;
|
|
||||||
#else
|
|
||||||
/* Todo... */
|
/* Todo... */
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PLATFORM_LINUX
|
#ifdef PLATFORM_LINUX
|
||||||
|
Loading…
Reference in New Issue
Block a user