mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +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:
@@ -939,7 +939,7 @@ static int scd41_unlink(FAR struct inode *inode)
|
||||
FAR struct scd41_dev_s *priv;
|
||||
int ret;
|
||||
|
||||
DEBUGASSERT(inode != NULL && inode->i_private != NULL);
|
||||
DEBUGASSERT(inode->i_private != NULL);
|
||||
priv = (FAR struct scd41_dev_s *)inode->i_private;
|
||||
|
||||
/* Get exclusive access */
|
||||
|
||||
Reference in New Issue
Block a user