[rtems commit] dosfs: PR2092: Delete unused function

Sebastian Huber sebh at rtems.org
Wed Feb 27 09:37:57 UTC 2013


Module:    rtems
Branch:    master
Commit:    d06d4ab312d9294738df33ecdcfec0e6589196b0
Changeset: http://git.rtems.org/rtems/commit/?id=d06d4ab312d9294738df33ecdcfec0e6589196b0

Author:    Andreas Heinig <andreas.heinig at cs.tu-dortmund.de>
Date:      Wed Feb 27 10:40:13 2013 +0100

dosfs: PR2092: Delete unused function

---

 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 b2b55c0..5225b95 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




More information about the vc mailing list