Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4980146ybl; Mon, 26 Aug 2019 20:10:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDYUHBiY391rgc1GKbO1V7a9Vg+ypXIXISC1SOZAmRkoo292jfOucFJqooMF2oc9QEv9Z1 X-Received: by 2002:a17:902:6847:: with SMTP id f7mr21825528pln.311.1566875406510; 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=C62GyccRCuvB7aBSyFdrqBdcxJOhne6GO/xjMZSi6mRR1CYWdzgsacDoQCtG+2f8lw 3/wdkcVrsfj493dze5WWZFYYbtnL1QW2GJuy8NKxWh9yjJ8/oZuWwgF3JXim2ONYK6q2 taADr5rXyET2axPIzw+Ff3VVxUVR+RS8TZWU5Z2tjfsdTBGfUgeu306zvpGyikV832w3 wyUW4eJ8q7/Yq15HLg2UEGkNDdZw+mBIkBTIV5ba4UVRkMREdmoZnoiV9qls41JewWBZ d6zlXJ2gvVv00m3Ph2rtxog5poaDZhx0vwNILjif43hSDngQ6FZd7HDxuBpwdMBetLzn IY9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=54X9Ir7FmQyIfN144F9AymAgDwhK7CjmTBxinbyxPus=; b=DaDxFOgtEipxfNh/aU6ym0Sw+JRRIQXQz+qpDtm7KROQJEYyxLm4v8Ve9hfFDp+1qy DbHmDV+N+CIU026Tpat94JftGgTn3ZxfPkzx8ew8tGASeUbMNlE90KD6qfT7nZoorwjN B19sbIb53YCrzfPPniRIbImGzDWiHO6sHSwrHdw+9Eot5nDauQMWvTWXmlQ071pq91VM ud+mv8KMu0cJ+yNmPpi3U2oyuJhlU9cnVm5qRuKMOtfOfKif9cTEcwpJxS5w9+wiQFN0 urO7kjju5MkxN7t1ijDfTn5U3wDIEFApOkw09y7gYb+xNODeuSRcPh9WrrnrBeknJ85r Jgmg== 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 y71si10673564pgd.271.2019.08.26.20.09.50; 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 S1728810AbfH0DI5 (ORCPT + 99 others); Mon, 26 Aug 2019 23:08:57 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5217 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728345AbfH0DI5 (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 3104FB144201CA99AC2E; 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:47 +0800 From: Jason Yan To: , , , , CC: Jason Yan Subject: [PATCH 2/2] reiserfs: remove set but not used variable in do_balan.c Date: Tue, 27 Aug 2019 11:29:32 +0800 Message-ID: <20190827032932.46622-2-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190827032932.46622-1-yanaijie@huawei.com> References: <20190827032932.46622-1-yanaijie@huawei.com> 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/do_balan.c: In function balance_leaf_insert_right: fs/reiserfs/do_balan.c:629:6: warning: variable ret set but not used [-Wunused-but-set-variable] Signed-off-by: Jason Yan --- fs/reiserfs/do_balan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/reiserfs/do_balan.c b/fs/reiserfs/do_balan.c index ffb6d7f0da94..4075e41408b4 100644 --- a/fs/reiserfs/do_balan.c +++ b/fs/reiserfs/do_balan.c @@ -626,7 +626,6 @@ static void balance_leaf_insert_right(struct tree_balance *tb, struct buffer_head *tbS0 = PATH_PLAST_BUFFER(tb->tb_path); int n = B_NR_ITEMS(tbS0); struct buffer_info bi; - int ret; /* new item or part of it doesn't fall into R[0] */ if (n - tb->rnum[0] >= tb->item_pos) { @@ -690,7 +689,7 @@ static void balance_leaf_insert_right(struct tree_balance *tb, /* whole new item falls into R[0] */ /* Shift rnum[0]-1 items to R[0] */ - ret = leaf_shift_right(tb, tb->rnum[0] - 1, tb->rbytes); + leaf_shift_right(tb, tb->rnum[0] - 1, tb->rbytes); /* Insert new item into R[0] */ buffer_info_init_right(tb, &bi); -- 2.17.2