summaryrefslogtreecommitdiffstats
path: root/fs/afs/addr_list.c
diff options
context:
space:
mode:
authorDavid Howells2018-10-20 01:57:59 +0200
committerDavid Howells2018-10-24 01:41:09 +0200
commit2feeaf8433c8e68de3d0a06a0ffe7742bcd13c1a (patch)
tree3df3266b2ae356ad67edf8fa5bf3491e2c865472 /fs/afs/addr_list.c
parentafs: Allow dumping of server cursor on operation failure (diff)
downloadkernel-qcow2-linux-2feeaf8433c8e68de3d0a06a0ffe7742bcd13c1a.tar.gz
kernel-qcow2-linux-2feeaf8433c8e68de3d0a06a0ffe7742bcd13c1a.tar.xz
kernel-qcow2-linux-2feeaf8433c8e68de3d0a06a0ffe7742bcd13c1a.zip
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/addr_list.c')
-rw-r--r--fs/afs/addr_list.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/afs/addr_list.c b/fs/afs/addr_list.c
index bc5ce31a4ae4..1536d1d21c33 100644
--- a/fs/afs/addr_list.c
+++ b/fs/afs/addr_list.c
@@ -371,7 +371,6 @@ bool afs_iterate_addresses(struct afs_addr_cursor *ac)
ac->begun = true;
ac->responded = false;
- ac->addr = &ac->alist->addrs[ac->index];
return true;
}
@@ -389,7 +388,6 @@ int afs_end_cursor(struct afs_addr_cursor *ac)
afs_put_addrlist(alist);
}
- ac->addr = NULL;
ac->alist = NULL;
ac->begun = false;
return ac->error;