mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
afs: remove variable nr_servers
Variable nr_servers is no longer being used, the last reference
to it was removed in commit 45df846273
("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/
This commit is contained in:
committed by
David Howells
parent
36f82c93ee
commit
318b83b712
@@ -70,11 +70,7 @@ static struct afs_volume *afs_alloc_volume(struct afs_fs_context *params,
|
|||||||
{
|
{
|
||||||
struct afs_server_list *slist;
|
struct afs_server_list *slist;
|
||||||
struct afs_volume *volume;
|
struct afs_volume *volume;
|
||||||
int ret = -ENOMEM, nr_servers = 0, i;
|
int ret = -ENOMEM;
|
||||||
|
|
||||||
for (i = 0; i < vldb->nr_servers; i++)
|
|
||||||
if (vldb->fs_mask[i] & type_mask)
|
|
||||||
nr_servers++;
|
|
||||||
|
|
||||||
volume = kzalloc(sizeof(struct afs_volume), GFP_KERNEL);
|
volume = kzalloc(sizeof(struct afs_volume), GFP_KERNEL);
|
||||||
if (!volume)
|
if (!volume)
|
||||||
|
Reference in New Issue
Block a user