afs: remove variable nr_servers
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- fs/afs/volume.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
fs/afs/volume.c +1 -5
@@ -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)
Signature · 1 line
2.37.3