Skip to content

Commit 318b83b

Browse files
ColinIanKingdhowells
authored andcommitted
afs: remove variable nr_servers
Variable nr_servers is no longer being used, the last reference to it was removed in commit 45df846 ("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]/
1 parent 36f82c9 commit 318b83b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

fs/afs/volume.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,7 @@ static struct afs_volume *afs_alloc_volume(struct afs_fs_context *params,
7070
{
7171
struct afs_server_list *slist;
7272
struct afs_volume *volume;
73-
int ret = -ENOMEM, nr_servers = 0, i;
74-
75-
for (i = 0; i < vldb->nr_servers; i++)
76-
if (vldb->fs_mask[i] & type_mask)
77-
nr_servers++;
73+
int ret = -ENOMEM;
7874

7975
volume = kzalloc(sizeof(struct afs_volume), GFP_KERNEL);
8076
if (!volume)

0 commit comments

Comments
 (0)