jlaitine commented on code in PR #15145:
URL: https://github.com/apache/nuttx/pull/15145#discussion_r1890160664
##########
drivers/bch/bchdev_driver.c:
##########
@@ -459,6 +459,13 @@ static int bch_ioctl(FAR struct file *filep, int cmd,
unsigned long arg)
if (bchinode->u.i_bops->ioctl != NULL)
{
ret = bchinode->u.i_bops->ioctl(bchinode, cmd, arg);
+
+ /* Drivers may not support command BIOC_FLUSH */
+
+ if (ret == -ENOTTY && cmd == BIOC_FLUSH)
Review Comment:
Just checking, this works for me, so it is fine by me! I was only asking,
because I had fixed the same thing in a bit different way
(https://github.com/apache/nuttx/pull/15259)
--
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]