fs/hostfs/hostfs.c: Remove a redundant assignment
Found by clang-check: hostfs/hostfs.c:1081:3: warning: Value stored to 'ret' is never read ret = OK; /* Assume success */ ^ ~~ 1 warning generated.
This commit is contained in:
parent
e79298bc34
commit
ba4a7107df
@ -1078,8 +1078,6 @@ static int hostfs_unbind(FAR void *handle, FAR struct inode **blkdriver,
|
||||
|
||||
/* Check if there are sill any files opened on the filesystem. */
|
||||
|
||||
ret = OK; /* Assume success */
|
||||
|
||||
ret = hostfs_semtake(fs);
|
||||
if (ret < 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user