Skip to content

Commit 313bf53

Browse files
committed
afs: remove variable nr_servers
jira LE-1907 Rebuild_History Non-Buildable kernel-rt-5.14.0-284.30.1.rt14.315.el9_2 commit-author Colin Ian King <colin.i.king@gmail.com> commit 318b83b 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 <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/ (cherry picked from commit 318b83b) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent 16fd136 commit 313bf53

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)