r30706 was not the right fix - thanks to amiconn for catching the error

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30707 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Chicoine 2011-10-04 00:42:00 +00:00
parent 1f5c5f2a88
commit 19c7494ebe
1 changed files with 3 additions and 3 deletions

View File

@ -552,7 +552,7 @@ void fat_size(IF_MV2(int volume,) unsigned long* size, unsigned long* free)
*size = num_clusters * secperclus / 2 * (bytespersec / 512);
if (free)
*free = free_clusters * secperclus / 2 * (bytespersec / 512);
}
} else
#elif HAVE_STATVFS
struct statvfs vfs;
@ -563,9 +563,9 @@ void fat_size(IF_MV2(int volume,) unsigned long* size, unsigned long* free)
*size = vfs.f_blocks / 2 * (vfs.f_frsize / 512);
if (free)
*free = vfs.f_bfree / 2 * (vfs.f_frsize / 512);
}
} else
#endif
else {
{
if (size)
*size = 0;
if (free)