[DFS] code cleanup
This commit is contained in:
parent
6e63cbb9be
commit
b7cf723162
|
@ -143,7 +143,7 @@ int dfs_elm_mount(struct dfs_filesystem *fs, unsigned long rwflag, const void *d
|
||||||
}
|
}
|
||||||
|
|
||||||
/* mount fatfs, always 0 logic driver */
|
/* mount fatfs, always 0 logic driver */
|
||||||
result = f_mount(fat,(const TCHAR*)logic_nbr, 1);
|
result = f_mount(fat, (const TCHAR*)logic_nbr, 1);
|
||||||
if (result == FR_OK)
|
if (result == FR_OK)
|
||||||
{
|
{
|
||||||
char drive[8];
|
char drive[8];
|
||||||
|
@ -153,7 +153,7 @@ int dfs_elm_mount(struct dfs_filesystem *fs, unsigned long rwflag, const void *d
|
||||||
dir = (DIR *)rt_malloc(sizeof(DIR));
|
dir = (DIR *)rt_malloc(sizeof(DIR));
|
||||||
if (dir == RT_NULL)
|
if (dir == RT_NULL)
|
||||||
{
|
{
|
||||||
f_mount(RT_NULL,(const TCHAR*)logic_nbr,1);
|
f_mount(RT_NULL, (const TCHAR*)logic_nbr, 1);
|
||||||
disk[index] = RT_NULL;
|
disk[index] = RT_NULL;
|
||||||
rt_free(fat);
|
rt_free(fat);
|
||||||
return -DFS_STATUS_ENOMEM;
|
return -DFS_STATUS_ENOMEM;
|
||||||
|
|
Loading…
Reference in New Issue