fs/nfs: fix coding style issue
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
eab86b72c4
commit
80004ef07d
@ -1252,19 +1252,19 @@ static off_t nfs_seek(FAR struct file *filep, off_t offset, int whence)
|
|||||||
switch (whence)
|
switch (whence)
|
||||||
{
|
{
|
||||||
case SEEK_SET:
|
case SEEK_SET:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SEEK_CUR:
|
case SEEK_CUR:
|
||||||
offset += filep->f_pos;
|
offset += filep->f_pos;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SEEK_END:
|
case SEEK_END:
|
||||||
offset += np->n_size;
|
offset += np->n_size;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
nxmutex_unlock(&nmp->nm_lock);
|
nxmutex_unlock(&nmp->nm_lock);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (offset >= 0)
|
if (offset >= 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user