Eliminate unused variable warning.

This commit is contained in:
Oleg Evseev 2017-08-30 08:46:48 -06:00 committed by Gregory Nutt
parent c509fbbdab
commit 18f4dcffa8

View File

@ -752,7 +752,6 @@ void rwb_uninitialize(FAR struct rwbuffer_s *rwb)
ssize_t rwb_read(FAR struct rwbuffer_s *rwb, off_t startblock,
size_t nblocks, FAR uint8_t *rdbuffer)
{
size_t remaining;
int ret = OK;
finfo("startblock=%ld nblocks=%ld rdbuffer=%p\n",
@ -782,6 +781,8 @@ ssize_t rwb_read(FAR struct rwbuffer_s *rwb, off_t startblock,
#endif
#ifdef CONFIG_DRVR_READAHEAD
size_t remaining;
if (rwb->rhmaxblocks > 0)
{
/* Loop until we have read all of the requested blocks */