From: philmd Date: Mon, 24 Feb 2020 21:42:41 +0000 (+0100) Subject: passthrough_ll: Remove unneeded variable assignment (#501) X-Git-Tag: fuse-3.9.1~4 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fd0403df03e188427767bf816032cde31f52aba7;p=qemu-gpiodev%2Flibfuse.git 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 Signed-off-by: Philippe Mathieu-Daudé --- 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;