diff options
author | Tian Tao <tiantao6@hisilicon.com> | 2021-04-13 09:43:16 +0800 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2021-04-21 16:29:05 +0200 |
commit | a3cc754ad9b80491e2db5ae6a5a956490654abb9 (patch) | |
tree | a44120ccbdbcbacdedc13e82d61e12d58b602a12 /fs/reiserfs | |
parent | 782b76d7abdf02b12c46ed6f1e9bf715569027f7 (diff) | |
download | linux-a3cc754ad9b80491e2db5ae6a5a956490654abb9.tar.gz linux-a3cc754ad9b80491e2db5ae6a5a956490654abb9.tar.bz2 linux-a3cc754ad9b80491e2db5ae6a5a956490654abb9.zip |
fs/reiserfs/journal.c: delete useless variables
The value of 'cn' is not used, so just delete it.
Link: https://lore.kernel.org/r/1618278196-17749-1-git-send-email-tiantao6@hisilicon.com
Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/reiserfs')
-rw-r--r-- | fs/reiserfs/journal.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c index e98f99338f8f..9edc8e2b154e 100644 --- a/fs/reiserfs/journal.c +++ b/fs/reiserfs/journal.c @@ -461,7 +461,6 @@ int reiserfs_in_journal(struct super_block *sb, b_blocknr_t * next_zero_bit) { struct reiserfs_journal *journal = SB_JOURNAL(sb); - struct reiserfs_journal_cnode *cn; struct reiserfs_list_bitmap *jb; int i; unsigned long bl; @@ -497,13 +496,12 @@ int reiserfs_in_journal(struct super_block *sb, bl = bmap_nr * (sb->s_blocksize << 3) + bit_nr; /* is it in any old transactions? */ if (search_all - && (cn = - get_journal_hash_dev(sb, journal->j_list_hash_table, bl))) { + && (get_journal_hash_dev(sb, journal->j_list_hash_table, bl))) { return 1; } /* is it in the current transaction. This should never happen */ - if ((cn = get_journal_hash_dev(sb, journal->j_hash_table, bl))) { + if ((get_journal_hash_dev(sb, journal->j_hash_table, bl))) { BUG(); return 1; } |