summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorphilmd <philmd@users.noreply.github.com>2020-02-24 22:42:41 +0100
committerGitHub <noreply@github.com>2020-02-24 21:42:41 +0000
commitfd0403df03e188427767bf816032cde31f52aba7 (patch)
tree48a34c744c999b69468b1d4a8e729b9781254397 /example
parent29b71ac481cb597355cec60770cf32d4173b8fd9 (diff)
downloadfuse-fd0403df03e188427767bf816032cde31f52aba7.tar.gz
passthrough_ll: Remove unneeded variable assignment (#501)
Fix warning reported by Clang static code analyzer: example/passthrough_ll.c:390:5: warning: Value stored to 'saverr' is never read saverr = ENOMEM; ^ ~~~~~~ Fixes: 4a92a82f2e2 Reported-by: Clang Static Analyzer Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'example')
-rw-r--r--example/passthrough_ll.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/example/passthrough_ll.c b/example/passthrough_ll.c
index 8165515..d60d772 100644
--- a/example/passthrough_ll.c
+++ b/example/passthrough_ll.c
@@ -387,8 +387,6 @@ static void lo_mknod_symlink(fuse_req_t req, fuse_ino_t parent,
struct lo_inode *dir = lo_inode(req, parent);
struct fuse_entry_param e;
- saverr = ENOMEM;
-
res = mknod_wrapper(dir->fd, name, link, mode, rdev);
saverr = errno;