[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190827032932.46622-1-yanaijie@huawei.com>
Date: Tue, 27 Aug 2019 11:29:31 +0800
From: Jason Yan <yanaijie@...wei.com>
To: <akpm@...ux-foundation.org>, <sfr@...b.auug.org.au>,
<jack@...e.cz>, <reiserfs-devel@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
CC: Jason Yan <yanaijie@...wei.com>
Subject: [PATCH 1/2] reiserfs: remove set but not used variable in journal.c
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]
Signed-off-by: Jason Yan <yanaijie@...wei.com>
---
fs/reiserfs/journal.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c
index 75d9d52d489f..4b3e3e73b512 100644
--- a/fs/reiserfs/journal.c
+++ b/fs/reiserfs/journal.c
@@ -1788,7 +1788,6 @@ static int flush_used_journal_lists(struct super_block *s,
{
unsigned long len = 0;
unsigned long cur_len;
- int ret;
int i;
int limit = 256;
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
* across multiple lists
*/
- if (flush_jl != jl) {
- ret = kupdate_transactions(s, jl, &tjl, &trans_id, len, i);
- }
+ if (flush_jl != jl)
+ kupdate_transactions(s, jl, &tjl, &trans_id, len, i);
+
flush_journal_list(s, flush_jl, 1);
put_journal_list(s, flush_jl);
put_journal_list(s, jl);
--
2.17.2
Powered by blists - more mailing lists