mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
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:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user