mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user