Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4980149ybl; Mon, 26 Aug 2019 20:10:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzm/s5EcVupr48yGCgxUD2oTs7AI1Exi1BpINjFFD/HnMxhpECXEwYpefJzkt0DoTY5Ux+F X-Received: by 2002:a63:3046:: with SMTP id w67mr19796694pgw.37.1566875406505; Mon, 26 Aug 2019 20:10:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566875406; cv=none; d=google.com; s=arc-20160816; b=Pfux3UESsSnLrFhWkrP6slGlJRfqbUMXy5Mn66NEW1RVBhgWuHLG/8DMncw8fuYi8i kVE3NXUqQmK6U5tUghhlVCOe2x680R59fPmz1evGv4chKQPXOVE491Di+wBGn7iZmGcY IJpnxsmWJl2ShPpr5UfFQh0ZOkqjwTeNJIBrffPS5e/cLmsXJ1vaE4dyg1+arrKaPxID ngjp5wVKFERLc/W5I4FUa8f4bIfmYCa5w8uokhl68a9DJJayEL0SN4OA86FkLZcjzBWe N72RtmCtMehqGpEAkpXQnG73QJbGcxsU59i5qrM+cULddZR2r21KGQqLnAkB3fXTzYDI 41vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=kF9dED7mKjACOjo4NgZ+fO3m+pxrK6pIBFxuyGLyWKA=; b=vjlvAQYDjWjWYz/R/0OYjhHv5I8uf/O+x/oG4WUKLxDJ3TkMrq9Y7BdNEIBHRJrWyn jmWYSiA2BElfCMMZh9GjWgegTKpFgnwiFnCLDCyzRTKz6hUQt3VfVfaP46/IGahlYZ1C UPNlD6cLuNxpaAwlQBlxFrlZRHa1nL6p2xz7CYtKBq8HT3oUzxDHnhRGcaYOgVQ8EfzQ bbDX+47MTw4G5plUZxgTtgH7kj3Y7xY8rI7D+jz3k/tGK2ui2xQwaFlBe2QuOpWJJtlq gkFHUjr0yJBJ0fRwVvLiJoSO2ke16poSjCFhRtzJmurxc52Mzx35SyRyLFTUo/FCjO8Q JiuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1si11269119plt.296.2019.08.26.20.09.51; Mon, 26 Aug 2019 20:10:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728888AbfH0DI6 (ORCPT + 99 others); Mon, 26 Aug 2019 23:08:58 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5218 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728025AbfH0DI5 (ORCPT ); Mon, 26 Aug 2019 23:08:57 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 3522412DB11A24F44196; Tue, 27 Aug 2019 11:08:54 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Tue, 27 Aug 2019 11:08:46 +0800 From: Jason Yan To: , , , , CC: Jason Yan Subject: [PATCH 1/2] reiserfs: remove set but not used variable in journal.c Date: Tue, 27 Aug 2019 11:29:31 +0800 Message-ID: <20190827032932.46622-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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