]> Git Repo - J-linux.git/commitdiff
afs: remove variable nr_servers
authorColin Ian King <[email protected]>
Thu, 20 Oct 2022 17:39:23 +0000 (18:39 +0100)
committerDavid Howells <[email protected]>
Thu, 22 Dec 2022 11:40:35 +0000 (11:40 +0000)
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 <[email protected]>
Signed-off-by: David Howells <[email protected]>
cc: Marc Dionne <[email protected]>
cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]/
fs/afs/volume.c

index f4937029dcd72493ff242b9e923df83ad68e42f6..29d483c80281309c37ee6b3d1cf28affffbd6e14 100644 (file)
@@ -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)
This page took 0.051837 seconds and 4 git commands to generate.