fs/reiserfs/journal.c: remove set but not used variable
Fix the following gcc warning: fs/reiserfs/journal.c: In function flush_used_journal_lists: fs/reiserfs/journal.c:1791:6: warning: variable ret set but not used [-Wunused-but-set-variable] Link: http://lkml.kernel.org/r/20190827032932.46622-1-yanaijie@huawei.com Signed-off-by: Jason Yan <yanaijie@huawei.com> Cc: zhengbin <zhengbin13@huawei.com> Cc: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
da5184c2ab
commit
3e9fd5a48c
|
@ -1788,7 +1788,6 @@ static int flush_used_journal_lists(struct super_block *s,
|
||||||
{
|
{
|
||||||
unsigned long len = 0;
|
unsigned long len = 0;
|
||||||
unsigned long cur_len;
|
unsigned long cur_len;
|
||||||
int ret;
|
|
||||||
int i;
|
int i;
|
||||||
int limit = 256;
|
int limit = 256;
|
||||||
struct reiserfs_journal_list *tjl;
|
struct reiserfs_journal_list *tjl;
|
||||||
|
@ -1825,9 +1824,9 @@ static int flush_used_journal_lists(struct super_block *s,
|
||||||
* transactions, but only bother if we've actually spanned
|
* transactions, but only bother if we've actually spanned
|
||||||
* across multiple lists
|
* across multiple lists
|
||||||
*/
|
*/
|
||||||
if (flush_jl != jl) {
|
if (flush_jl != jl)
|
||||||
ret = kupdate_transactions(s, jl, &tjl, &trans_id, len, i);
|
kupdate_transactions(s, jl, &tjl, &trans_id, len, i);
|
||||||
}
|
|
||||||
flush_journal_list(s, flush_jl, 1);
|
flush_journal_list(s, flush_jl, 1);
|
||||||
put_journal_list(s, flush_jl);
|
put_journal_list(s, flush_jl);
|
||||||
put_journal_list(s, jl);
|
put_journal_list(s, jl);
|
||||||
|
|
Loading…
Reference in New Issue