From fd0403df03e188427767bf816032cde31f52aba7 Mon Sep 17 00:00:00 2001 From: philmd Date: Mon, 24 Feb 2020 22:42:41 +0100 Subject: passthrough_ll: Remove unneeded variable assignment (#501) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Philippe Mathieu-Daudé --- example/passthrough_ll.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'example') 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; -- cgit v1.2.1