mirror of
https://github.com/apache/nuttx.git
synced 2026-08-11 23:45:11 +00:00
fs/userfs: Correct check for response type.
This commit is contained in:
parent
14fb37c995
commit
e5d7e4a12b
1 changed files with 1 additions and 1 deletions
|
|
@ -375,7 +375,7 @@ static ssize_t userfs_read(FAR struct file *filep, char *buffer,
|
|||
}
|
||||
|
||||
resp = (FAR struct userfs_read_response_s *)priv->iobuffer;
|
||||
if (resp->resp != USERFS_RESP_CLOSE)
|
||||
if (resp->resp != USERFS_RESP_READ)
|
||||
{
|
||||
ferr("ERROR: Incorrect response: %u\n", resp->resp);
|
||||
return -EIO;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue