mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-04-04 17:50:31 +00:00
libtests: Fix variable 'remains' set but not used
Fix this warning. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
@@ -497,9 +497,6 @@ static int bdbuf_disk_ioctl( rtems_disk_device *dd, uint32_t req, void *argp )
|
||||
rtems_blkdev_sg_buffer *sg = r->bufs;
|
||||
uint32_t block = RTEMS_BLKDEV_START_BLOCK( r );
|
||||
uint32_t b;
|
||||
int32_t remains;
|
||||
|
||||
remains = r->bufnum * bdd->block_size;
|
||||
|
||||
for ( b = 0; b < r->bufnum; b++, block++, sg++ ) {
|
||||
uint32_t length = sg->length;
|
||||
@@ -511,8 +508,6 @@ static int bdbuf_disk_ioctl( rtems_disk_device *dd, uint32_t req, void *argp )
|
||||
}
|
||||
|
||||
memset( sg->buffer, block, length );
|
||||
|
||||
remains -= length;
|
||||
}
|
||||
|
||||
rtems_blkdev_request_done( r, RTEMS_SUCCESSFUL );
|
||||
|
||||
Reference in New Issue
Block a user