diff options
author | Andreas Heinig <andreas.heinig@cs.tu-dortmund.de> | 2013-02-27 10:40:13 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-02-27 10:42:52 +0100 |
commit | d06d4ab312d9294738df33ecdcfec0e6589196b0 (patch) | |
tree | 914b91b41dd0e1ece4b9b63a2a73e18efa04dbc2 | |
parent | doc: Build html into subdirectory (fix make clean) (diff) | |
download | rtems-d06d4ab312d9294738df33ecdcfec0e6589196b0.tar.bz2 |
dosfs: PR2092: Delete unused function
-rw-r--r-- | cpukit/libfs/src/dosfs/fat.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/cpukit/libfs/src/dosfs/fat.c b/cpukit/libfs/src/dosfs/fat.c index b2b55c0e7b..5225b95ecd 100644 --- a/cpukit/libfs/src/dosfs/fat.c +++ b/cpukit/libfs/src/dosfs/fat.c @@ -30,11 +30,6 @@ static int _fat_block_release(fat_fs_info_t *fs_info); -static ssize_t - fat_cluster_read(fat_fs_info_t *fs_info, - uint32_t cln, - void *buff); - static inline uint32_t fat_cluster_num_to_block_num (const fat_fs_info_t *fs_info, uint32_t cln) @@ -392,33 +387,6 @@ _fat_block_release(fat_fs_info_t *fs_info) return fat_buf_release(fs_info); } -/* fat_cluster_read -- - * wrapper for reading a whole cluster at once - * - * PARAMETERS: - * fs_info - FS info - * cln - number of cluster to read - * buff - buffer provided by user - * - * RETURNS: - * bytes read on success, or -1 if error occured - * and errno set appropriately - */ -ssize_t -fat_cluster_read( - fat_fs_info_t *fs_info, - uint32_t cln, - void *buff - ) -{ - uint32_t fsec = 0; - - fsec = fat_cluster_num_to_sector_num(fs_info, cln); - - return _fat_block_read(fs_info, fsec, 0, - fs_info->vol.spc << fs_info->vol.sec_log2, buff); -} - /* fat_cluster_write -- * This function write 'count' bytes to device filesystem is mounted on, * starts at 'start+offset' position where 'start' computed in clusters |