[rtems commit] PR2040: libblock: Fix return status
Sebastian Huber
sebh at rtems.org
Wed Mar 14 10:17:04 UTC 2012
Module: rtems
Branch: master
Commit: a309a7941e75d86a0d202f9a8908da61bcd42c08
Changeset: http://git.rtems.org/rtems/commit/?id=a309a7941e75d86a0d202f9a8908da61bcd42c08
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