Skip to content

Commit 1e907f4

Browse files
Fabian Fredericktorvalds
authored andcommitted
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>
1 parent a841b65 commit 1e907f4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎fs/affs/super.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,6 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent)
308308
u32 chksum;
309309
int num_bm;
310310
int i, j;
311-
s32 key;
312311
kuid_t uid;
313312
kgid_t gid;
314313
int reserved;
@@ -367,7 +366,7 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent)
367366
i = j = blocksize;
368367
size = size / (blocksize / 512);
369368
}
370-
for (blocksize = i, key = 0; blocksize <= j; blocksize <<= 1, size >>= 1) {
369+
for (blocksize = i; blocksize <= j; blocksize <<= 1, size >>= 1) {
371370
sbi->s_root_block = root_block;
372371
if (root_block < 0)
373372
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)
399398
be32_to_cpu(AFFS_ROOT_TAIL(sb, root_bh)->stype) == ST_ROOT) {
400399
sbi->s_hashsize = blocksize / 4 - 56;
401400
sbi->s_root_block += num_bm;
402-
key = 1;
403401
goto got_root;
404402
}
405403
affs_brelse(root_bh);

0 commit comments

Comments
 (0)