PR2040: libblock: Fix return status

This commit is contained in:
Sebastian Huber
2012-03-09 14:45:08 +01:00
parent b3142bdc50
commit 7b646be2bb

View File

@@ -2120,7 +2120,7 @@ rtems_fdisk_write_block (rtems_flashdisk* fd,
* to inform upper layer that reading is completed. * to inform upper layer that reading is completed.
* *
* @param req Pointer to the READ block device request info. * @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 static int
rtems_fdisk_read (rtems_flashdisk* fd, rtems_blkdev_request* req) 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->status = ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL;
req->req_done (req->done_arg, req->status); 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. * upper layer that writing is completed.
* *
* @param req Pointers to the WRITE block device request info. * @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 static int
rtems_fdisk_write (rtems_flashdisk* fd, rtems_blkdev_request* req) rtems_fdisk_write (rtems_flashdisk* fd, rtems_blkdev_request* req)