[rtems commit] PR2040: libblock: Fix return status

Joel Sherrill joel at rtems.org
Thu Mar 29 14:14:31 UTC 2012


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

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 54f544b..ec148b1 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