You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2020/07/30 07:00:00 UTC
[incubator-nuttx] 01/03: fs/hostfs/hostfs.c: Remove a redundant
assignment
This is an automated email from the ASF dual-hosted git repository.
jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit ba4a7107dfcb13ffc5c8c858291a78ccde9942d5
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Thu Jul 30 13:18:21 2020 +0900
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.
---
fs/hostfs/hostfs.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/hostfs/hostfs.c b/fs/hostfs/hostfs.c
index 8a22c11..7b6f259 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)
{