summaryrefslogtreecommitdiff
path: root/fs/afs
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-10-20 18:39:23 +0100
committerDavid Howells <dhowells@redhat.com>2022-12-22 11:40:35 +0000
commit318b83b71242998814a570c3420c042ee6165fca (patch)
tree8d71608da5ae3e4213a330fffd60d3b92345ad93 /fs/afs
parent36f82c93ee0bd88f1c95a52537906b8178b537f1 (diff)
afs: remove variable nr_servers
Variable nr_servers is no longer being used, the last reference to it was removed in commit 45df8462730d ("afs: Fix server list handling") so clean up the code by removing it. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: David Howells <dhowells@redhat.com> cc: Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org Link: https://lore.kernel.org/r/20221020173923.21342-1-colin.i.king@gmail.com/
Diffstat (limited to 'fs/afs')
-rw-r--r--fs/afs/volume.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/afs/volume.c b/fs/afs/volume.c
index f4937029dcd7..29d483c80281 100644
--- a/fs/afs/volume.c
+++ b/fs/afs/volume.c
@@ -70,11 +70,7 @@ static struct afs_volume *afs_alloc_volume(struct afs_fs_context *params,
{
struct afs_server_list *slist;
struct afs_volume *volume;
- int ret = -ENOMEM, nr_servers = 0, i;
-
- for (i = 0; i < vldb->nr_servers; i++)
- if (vldb->fs_mask[i] & type_mask)
- nr_servers++;
+ int ret = -ENOMEM;
volume = kzalloc(sizeof(struct afs_volume), GFP_KERNEL);
if (!volume)