Skip to content

Commit a3cc754

Browse files
Tian Taojankara
authored andcommitted
fs/reiserfs/journal.c: delete useless variables
The value of 'cn' is not used, so just delete it. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Tian Tao <[email protected]> Signed-off-by: Jan Kara <[email protected]>
1 parent 782b76d commit a3cc754

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

fs/reiserfs/journal.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,6 @@ int reiserfs_in_journal(struct super_block *sb,
461461
b_blocknr_t * next_zero_bit)
462462
{
463463
struct reiserfs_journal *journal = SB_JOURNAL(sb);
464-
struct reiserfs_journal_cnode *cn;
465464
struct reiserfs_list_bitmap *jb;
466465
int i;
467466
unsigned long bl;
@@ -497,13 +496,12 @@ int reiserfs_in_journal(struct super_block *sb,
497496
bl = bmap_nr * (sb->s_blocksize << 3) + bit_nr;
498497
/* is it in any old transactions? */
499498
if (search_all
500-
&& (cn =
501-
get_journal_hash_dev(sb, journal->j_list_hash_table, bl))) {
499+
&& (get_journal_hash_dev(sb, journal->j_list_hash_table, bl))) {
502500
return 1;
503501
}
504502

505503
/* is it in the current transaction. This should never happen */
506-
if ((cn = get_journal_hash_dev(sb, journal->j_hash_table, bl))) {
504+
if ((get_journal_hash_dev(sb, journal->j_hash_table, bl))) {
507505
BUG();
508506
return 1;
509507
}

0 commit comments

Comments
 (0)