summaryrefslogtreecommitdiffstats
path: root/fs/afs/server.c
diff options
context:
space:
mode:
authorzhengbin <zhengbin13@huawei.com>2019-11-21 09:12:18 +0000
committerDavid Howells <dhowells@redhat.com>2019-11-21 20:36:04 +0000
commit4fe171bb81b13b40bf568330ec3716dfb304ced1 (patch)
tree7ffb91232caefb23d622f69bb1cc4515617c5381 /fs/afs/server.c
parent51590df4f3306cb1f43dca54e3ccdd121ab89594 (diff)
downloadlinux-4fe171bb81b13b40bf568330ec3716dfb304ced1.tar.gz
linux-4fe171bb81b13b40bf568330ec3716dfb304ced1.tar.bz2
linux-4fe171bb81b13b40bf568330ec3716dfb304ced1.zip
afs: Remove set but not used variable 'ret'
Fixes gcc '-Wunused-but-set-variable' warning: fs/afs/server.c: In function afs_install_server: fs/afs/server.c:157:6: warning: variable ret set but not used [-Wunused-but-set-variable] It is not used since commit d2ddc776a458 ("afs: Overhaul volume and server record caching and fileserver rotation") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: zhengbin <zhengbin13@huawei.com> Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/server.c')
-rw-r--r--fs/afs/server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/afs/server.c b/fs/afs/server.c
index 64d440aaabc0..1686bf188ccd 100644
--- a/fs/afs/server.c
+++ b/fs/afs/server.c
@@ -151,7 +151,7 @@ static struct afs_server *afs_install_server(struct afs_net *net,
const struct afs_addr_list *alist;
struct afs_server *server;
struct rb_node **pp, *p;
- int ret = -EEXIST, diff;
+ int diff;
_enter("%p", candidate);
@@ -196,7 +196,6 @@ static struct afs_server *afs_install_server(struct afs_net *net,
hlist_add_head_rcu(&server->addr6_link, &net->fs_addresses6);
write_sequnlock(&net->fs_addr_lock);
- ret = 0;
exists:
afs_get_server(server, afs_server_trace_get_install);