diff options
Diffstat (limited to 'nuttx/fs/fs_findblockdriver.c')
-rw-r--r-- | nuttx/fs/fs_findblockdriver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/fs/fs_findblockdriver.c b/nuttx/fs/fs_findblockdriver.c index b7c335a61..b2b4606df 100644 --- a/nuttx/fs/fs_findblockdriver.c +++ b/nuttx/fs/fs_findblockdriver.c @@ -83,12 +83,13 @@ int find_blockdriver(FAR const char *pathname, int mountflags, FAR struct inode int ret = 0; /* Assume success */ /* Sanity checks */ - +#ifdef CONFIG_DEBUG if (!pathname || !ppinode) { ret = -EINVAL; goto errout; } +#endif /* Find the inode registered with this pathname */ |