[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231221085849.1463-1-abelova@astralinux.ru>
Date: Thu, 21 Dec 2023 11:58:49 +0300
From: Anastasia Belova <abelova@...ralinux.ru>
To: David Howells <dhowells@...hat.com>
Cc: Anastasia Belova <abelova@...ralinux.ru>,
Marc Dionne <marc.dionne@...istor.com>,
linux-afs@...ts.infradead.org,
linux-kernel@...r.kernel.org,
lvc-project@...uxtesting.org
Subject: [PATCH] afs: remove redundant overwriting of ret
ret is the result of dns lookup. There are several
ways to handle different errors (described by switch).
So it is necessary to keep the return value of afs_dns_query.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: d5c32c89b208 ("afs: Fix cell DNS lookup")
Signed-off-by: Anastasia Belova <abelova@...ralinux.ru>
---
fs/afs/cell.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/afs/cell.c b/fs/afs/cell.c
index 988c2ac7cece..9a112e03bee1 100644
--- a/fs/afs/cell.c
+++ b/fs/afs/cell.c
@@ -409,7 +409,6 @@ static int afs_update_cell(struct afs_cell *cell)
if (ret == -ENOMEM)
goto out_wake;
- ret = -ENOMEM;
vllist = afs_alloc_vlserver_list(0);
if (!vllist)
goto out_wake;
--
2.30.2
Powered by blists - more mailing lists