fs/userfs: Correct check for response type.

This commit is contained in:
Gregory Nutt 2017-11-01 16:57:59 -06:00
parent 14fb37c995
commit e5d7e4a12b
1 changed files with 1 additions and 1 deletions

View File

@ -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;