fs/rpmsgfs: minor refine the return value

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-03-19 14:05:57 +08:00 committed by Petro Karashchenko
parent 28860b5242
commit 8308f32863

View File

@ -453,12 +453,8 @@ off_t rpmsgfs_client_lseek(FAR void *handle, int fd,
.whence = whence,
};
int ret;
ret = rpmsgfs_send_recv(handle, RPMSGFS_LSEEK, true,
(struct rpmsgfs_header_s *)&msg, sizeof(msg), NULL);
return ret < 0 ? ret : ret;
return rpmsgfs_send_recv(handle, RPMSGFS_LSEEK, true,
(struct rpmsgfs_header_s *)&msg, sizeof(msg), NULL);
}
int rpmsgfs_client_ioctl(FAR void *handle, int fd,