net/usrsock: fix error: variable 'pos' is used uninitialized

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2020-04-29 18:15:18 +08:00 committed by patacongo
parent c82b446fa9
commit 5b839061f9
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ static off_t usrsockdev_seek(FAR struct file *filep, off_t offset,
{
pos = dev->req.pos + offset;
}
else if (whence == SEEK_SET)
else
{
pos = offset;
}