casaroli commented on code in PR #21064:
URL: https://github.com/apache/nuttx/pull/21064#discussion_r4398226794


##########
drivers/misc/rwbuffer.c:
##########
@@ -332,6 +350,7 @@ static ssize_t rwb_writebuffer(FAR struct rwbuffer_s *rwb,
   if (nblocks > rwb->wrmaxblocks)
     {
       ssize_t ret = rwb->wrflush(rwb->dev, wrbuffer, startblock, nblocks);

Review Comment:
   This line declares a second `ssize_t ret` that hides the new `ret` at line 
259.
   
   Fix: remove the inner declaration and use the outer `ret`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to