[rtems commit] PR2040: libblock: Fix return status

Sebastian Huber sebh at rtems.org
Wed Mar 14 10:48:58 UTC 2012


Module:    rtems
Branch:    4.10
Commit:    7b646be2bb8a467409473dcd5ea623a221d53d08
Changeset: http://git.rtems.org/rtems/commit/?id=7b646be2bb8a467409473dcd5ea623a221d53d08

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Mar  9 14:45:08 2012 +0100

PR2040: libblock: Fix return status

---

 cpukit/libblock/src/flashdisk.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cpukit/libblock/src/flashdisk.c b/cpukit/libblock/src/flashdisk.c
index f6e36ad..dc4da64 100644
--- a/cpukit/libblock/src/flashdisk.c
+++ b/cpukit/libblock/src/flashdisk.c
@@ -2120,7 +2120,7 @@ rtems_fdisk_write_block (rtems_flashdisk* fd,
  * to inform upper layer that reading is completed.
  *
  * @param req Pointer to the READ block device request info.
- * @retval int The ioctl return value.
+ * @retval 0 Always.  The request done callback contains the status.
  */
 static int
 rtems_fdisk_read (rtems_flashdisk* fd, rtems_blkdev_request* req)
@@ -2147,7 +2147,7 @@ rtems_fdisk_read (rtems_flashdisk* fd, rtems_blkdev_request* req)
   req->status = ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL;
   req->req_done (req->done_arg, req->status);
 
-  return ret;
+  return 0;
 }
 
 /**
@@ -2156,7 +2156,7 @@ rtems_fdisk_read (rtems_flashdisk* fd, rtems_blkdev_request* req)
  * upper layer that writing is completed.
  *
  * @param req Pointers to the WRITE block device request info.
- * @retval int The ioctl return value.
+ * @retval 0 Always.  The request done callback contains the status.
  */
 static int
 rtems_fdisk_write (rtems_flashdisk* fd, rtems_blkdev_request* req)




More information about the vc mailing list