diff --git a/fs/hostfs/hostfs.c b/fs/hostfs/hostfs.c index 8a22c115a0..7b6f259ecc 100644 --- a/fs/hostfs/hostfs.c +++ b/fs/hostfs/hostfs.c @@ -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) {