Fix missing instantiation of return value in rwb_mediaremoved.

This commit is contained in:
Radek Pesina 2023-04-26 14:47:36 +10:00 committed by Xiang Xiao
parent a0e2f29bdf
commit 3ba792cb52

View File

@ -1182,6 +1182,8 @@ ssize_t rwb_readbytes(FAR struct rwbuffer_s *dev, off_t offset,
#ifdef CONFIG_DRVR_REMOVABLE
int rwb_mediaremoved(FAR struct rwbuffer_s *rwb)
{
int ret;
#ifdef CONFIG_DRVR_WRITEBUFFER
if (rwb->wrmaxblocks > 0)
{