diff options
author | David Howells <dhowells@redhat.com> | 2018-10-19 19:57:59 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-10-23 19:41:09 -0400 |
commit | 2feeaf8433c8e68de3d0a06a0ffe7742bcd13c1a (patch) | |
tree | 3df3266b2ae356ad67edf8fa5bf3491e2c865472 /fs/afs/server.c | |
parent | 744bcd713a4eabb248246f7deccfad30c579b7f5 (diff) |
afs: Eliminate the address pointer from the address list cursor
Eliminate the address pointer from the address list cursor as it's
redundant (ac->addrs[ac->index] can be used to find the same address) and
address lists must be replaced rather than being rearranged, so is of
limited value.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/server.c')
-rw-r--r-- | fs/afs/server.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/afs/server.c b/fs/afs/server.c index aa35cfae5440..7c1be8b4dc9a 100644 --- a/fs/afs/server.c +++ b/fs/afs/server.c | |||
@@ -367,7 +367,6 @@ static void afs_destroy_server(struct afs_net *net, struct afs_server *server) | |||
367 | .alist = alist, | 367 | .alist = alist, |
368 | .start = alist->index, | 368 | .start = alist->index, |
369 | .index = 0, | 369 | .index = 0, |
370 | .addr = &alist->addrs[alist->index], | ||
371 | .error = 0, | 370 | .error = 0, |
372 | }; | 371 | }; |
373 | _enter("%p", server); | 372 | _enter("%p", server); |
@@ -518,7 +517,6 @@ static bool afs_do_probe_fileserver(struct afs_fs_cursor *fc) | |||
518 | 517 | ||
519 | _enter(""); | 518 | _enter(""); |
520 | 519 | ||
521 | fc->ac.addr = NULL; | ||
522 | fc->ac.start = READ_ONCE(fc->ac.alist->index); | 520 | fc->ac.start = READ_ONCE(fc->ac.alist->index); |
523 | fc->ac.index = fc->ac.start; | 521 | fc->ac.index = fc->ac.start; |
524 | fc->ac.error = 0; | 522 | fc->ac.error = 0; |