Trivial cleanup of some parameter sanity checks
This commit is contained in:
parent
92f1f7c12e
commit
f753d3320b
|
@ -77,7 +77,7 @@ FAR struct inode *inode_find(FAR const char *path, FAR const char **relpath)
|
|||
{
|
||||
FAR struct inode *node;
|
||||
|
||||
if (!path || !*path || path[0] != '/')
|
||||
if (path == NULL || path[0] == '\0' || path[0] != '/')
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -88,7 +88,7 @@ FAR struct inode *inode_unlink(FAR const char *path)
|
|||
|
||||
/* Verify parameters. Ignore null paths and relative paths */
|
||||
|
||||
if (!path || *path == '\0' || path[0] != '/')
|
||||
if (path == NULL || path[0] != '/')
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue