From fd0403df03e188427767bf816032cde31f52aba7 Mon Sep 17 00:00:00 2001
From: philmd <philmd@users.noreply.github.com>
Date: Mon, 24 Feb 2020 22:42:41 +0100
Subject: [PATCH] passthrough_ll: Remove unneeded variable assignment (#501)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
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 <jtomko@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 example/passthrough_ll.c | 2 --
 1 file changed, 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;
-- 
2.30.2