Skip to content

Commit

Permalink
afs: remove unused variable 'afs_voltypes'
Browse files Browse the repository at this point in the history
fs/afs/volume.c:15:26: warning:
 afs_voltypes defined but not used [-Wunused-const-variable=]

It is not used since commit d2ddc77 ("afs: Overhaul
volume and server record caching and fileserver rotation")

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David Howells <dhowells@redhat.com>
  • Loading branch information
YueHaibing authored and David Howells committed Sep 2, 2019
1 parent f161807 commit cacf2d7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/afs/volume.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
unsigned __read_mostly afs_volume_gc_delay = 10;
unsigned __read_mostly afs_volume_record_life = 60 * 60;

static const char *const afs_voltypes[] = { "R/W", "R/O", "BAK" };

/*
* Allocate a volume record and load it up from a vldb record.
*/
Expand Down

0 comments on commit cacf2d7

Please sign in to comment.