diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-10-13 18:53:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-13 20:18:21 -0400 |
commit | 1e907f4f116dd94dcc751bc0a053acd29728cc95 (patch) | |
tree | b917e390118ad21c694422a6bcdbdb59ad7c3c13 /fs/affs | |
parent | a841b65921a959c759da6b5c8d5dc21966b4cf86 (diff) |
fs/affs/super.c: remove unused variable
key is set in affs_fill_super but never used.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/affs')
-rw-r--r-- | fs/affs/super.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/affs/super.c b/fs/affs/super.c index 51f1a95bff73..a67dc72d87b4 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c | |||
@@ -308,7 +308,6 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent) | |||
308 | u32 chksum; | 308 | u32 chksum; |
309 | int num_bm; | 309 | int num_bm; |
310 | int i, j; | 310 | int i, j; |
311 | s32 key; | ||
312 | kuid_t uid; | 311 | kuid_t uid; |
313 | kgid_t gid; | 312 | kgid_t gid; |
314 | int reserved; | 313 | int reserved; |
@@ -367,7 +366,7 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent) | |||
367 | i = j = blocksize; | 366 | i = j = blocksize; |
368 | size = size / (blocksize / 512); | 367 | size = size / (blocksize / 512); |
369 | } | 368 | } |
370 | for (blocksize = i, key = 0; blocksize <= j; blocksize <<= 1, size >>= 1) { | 369 | for (blocksize = i; blocksize <= j; blocksize <<= 1, size >>= 1) { |
371 | sbi->s_root_block = root_block; | 370 | sbi->s_root_block = root_block; |
372 | if (root_block < 0) | 371 | if (root_block < 0) |
373 | sbi->s_root_block = (reserved + size - 1) / 2; | 372 | sbi->s_root_block = (reserved + size - 1) / 2; |
@@ -399,7 +398,6 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent) | |||
399 | be32_to_cpu(AFFS_ROOT_TAIL(sb, root_bh)->stype) == ST_ROOT) { | 398 | be32_to_cpu(AFFS_ROOT_TAIL(sb, root_bh)->stype) == ST_ROOT) { |
400 | sbi->s_hashsize = blocksize / 4 - 56; | 399 | sbi->s_hashsize = blocksize / 4 - 56; |
401 | sbi->s_root_block += num_bm; | 400 | sbi->s_root_block += num_bm; |
402 | key = 1; | ||
403 | goto got_root; | 401 | goto got_root; |
404 | } | 402 | } |
405 | affs_brelse(root_bh); | 403 | affs_brelse(root_bh); |