Skip to content

Commit 31e9dc4

Browse files
ColinIanKingjankara
authored andcommitted
udf: remove redundant assignment of variable etype
Variable etype is being assigned a value that is never read. The variable and assignment are redundant and can be removed. Cleans up clang scan build warning: fs/udf/super.c:2485:10: warning: Although the value stored to 'etype' is used in the enclosing expression, the value is never actually read from 'etype' [deadcode.DeadStores] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Jan Kara <[email protected]>
1 parent eb103a5 commit 31e9dc4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/udf/super.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2474,15 +2474,14 @@ static unsigned int udf_count_free_table(struct super_block *sb,
24742474
unsigned int accum = 0;
24752475
uint32_t elen;
24762476
struct kernel_lb_addr eloc;
2477-
int8_t etype;
24782477
struct extent_position epos;
24792478

24802479
mutex_lock(&UDF_SB(sb)->s_alloc_mutex);
24812480
epos.block = UDF_I(table)->i_location;
24822481
epos.offset = sizeof(struct unallocSpaceEntry);
24832482
epos.bh = NULL;
24842483

2485-
while ((etype = udf_next_aext(table, &epos, &eloc, &elen, 1)) != -1)
2484+
while (udf_next_aext(table, &epos, &eloc, &elen, 1) != -1)
24862485
accum += (elen >> table->i_sb->s_blocksize_bits);
24872486

24882487
brelse(epos.bh);

0 commit comments

Comments
 (0)