fs/inode: remove all unnecessary check for filep/inode

Since VFS layer already contains sanity checks, so remove unnecessary lower half checks

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an
2023-08-28 17:17:05 +08:00
committed by Xiang Xiao
parent baabf4bbf3
commit 7aa45305b7
158 changed files with 412 additions and 714 deletions
+2 -2
View File
@@ -280,10 +280,10 @@ static int hcsr04_poll(FAR struct file *filep, FAR struct pollfd *fds,
int ret = OK;
int i;
DEBUGASSERT(filep && fds);
DEBUGASSERT(fds);
inode = filep->f_inode;
DEBUGASSERT(inode && inode->i_private);
DEBUGASSERT(inode->i_private);
priv = (FAR struct hcsr04_dev_s *)inode->i_private;
/* Get exclusive access */