Skip to content

Commit 8ace883

Browse files
Tom Rixjankara
authored andcommitted
reiserfs: remove unused sched_count variable
clang with W=1 reports fs/reiserfs/journal.c:3034:6: error: variable 'sched_count' set but not used [-Werror,-Wunused-but-set-variable] int sched_count = 0; ^ This variable is not used so remove it. Signed-off-by: Tom Rix <[email protected]> Signed-off-by: Jan Kara <[email protected]> Message-Id: <[email protected]>
1 parent fae0a2b commit 8ace883

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/reiserfs/journal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3031,7 +3031,6 @@ static int do_journal_begin_r(struct reiserfs_transaction_handle *th,
30313031
unsigned int old_trans_id;
30323032
struct reiserfs_journal *journal = SB_JOURNAL(sb);
30333033
struct reiserfs_transaction_handle myth;
3034-
int sched_count = 0;
30353034
int retval;
30363035
int depth;
30373036

@@ -3088,7 +3087,6 @@ static int do_journal_begin_r(struct reiserfs_transaction_handle *th,
30883087
((journal->j_len + nblocks + 2) * 100) <
30893088
(journal->j_len_alloc * 75)) {
30903089
if (atomic_read(&journal->j_wcount) > 10) {
3091-
sched_count++;
30923090
queue_log_writer(sb);
30933091
goto relock;
30943092
}

0 commit comments

Comments
 (0)