vfs/poll: remove inode check since which could be NULL

Change-Id: Ib9a5a44e12acaa82e255028d7749bea9a8a371ed
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2021-09-09 11:38:03 +08:00
parent 3118efa317
commit e2b71ef804
+1 -1
View File
@@ -299,7 +299,7 @@ int file_poll(FAR struct file *filep, FAR struct pollfd *fds, bool setup)
FAR struct inode *inode;
int ret = -ENOSYS;
DEBUGASSERT(filep != NULL && filep->f_inode != NULL);
DEBUGASSERT(filep != NULL);
inode = filep->f_inode;
if (inode != NULL)