Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4602828ybh; Tue, 6 Aug 2019 14:41:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqbyBN4f8N++jNkmKbiWmEVN2E58d8p0fJGsn2Wxyol38TuFCsSQi89wLhyw2Kc7vxxztA X-Received: by 2002:a17:90a:3247:: with SMTP id k65mr5177999pjb.49.1565127663408; Tue, 06 Aug 2019 14:41:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565127663; cv=none; d=google.com; s=arc-20160816; b=vUuLVr+kEj8ACTxwwqW6Vo03UKUcgXl5mqZQrX25q1kSzjPDllf6Y8MYxLAUTgU8Oa iunJZlwbY8MvQlaNr0z9tKGe5VDfTJ4MYG28yNKKdLV1d+oR9gJJjUoCFlmiRDy9K+/M mlmEtQ9cP44m7gsaIQaICnHnPnPjfIvgrw15ZfMGaO+UAm6DuEcrIs/cWhN5DEkuUL2p btFwd5jHORuXBwlpEfnR0fgKyzIiflZNduEe166Voz1wAgMH7VVFA/8ELhsflgRk8pWX e9LSo45zoqWt1A5cJ93TEOccV+IKYcNsvwM+lelu5NS1prpPcyU3bQ7daQyf7Dkyo8ll NW5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DddVrl8hA/jXRTgU17dS4+haAwJLGUhRHABrfe5MsE8=; b=vgH3+uHH6SwotqGsMijYrDd7XlB3EhdZlJ9xlhcM2lGF1uGmNCyi78u6VM+pYr39KE Txg7qUQq9CNjH6zqnxZ6FlvLrXfo4rk0Thf5ng27RimOrBzcyFmxpulhhgkEBXHYPke8 8zGLSqk1MDuIu9biuqt6o/OYlZ/d0lJ5zMf1AKcorSlzsUqsmglFxSEn0gzRj/8cnSVu D5kt/+VGG7Qegnairf0kgmawnZ7xlaO/Mr1wF9/blDUignnxZX41k/q/0BbO+XJHSxDU ism6KfeqEtpx+nZ9IfqyYKK0JVdCqb7/9iJLcFcMhVZsEedtHF6nRWK/uWjIAnifIntw hZTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=a0Nzr7dV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bf2si7580010plb.20.2019.08.06.14.40.47; Tue, 06 Aug 2019 14:41:03 -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; dkim=pass header.i=@kernel.org header.s=default header.b=a0Nzr7dV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729737AbfHFViU (ORCPT + 99 others); Tue, 6 Aug 2019 17:38:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:55872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729604AbfHFViM (ORCPT ); Tue, 6 Aug 2019 17:38:12 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 422E621882; Tue, 6 Aug 2019 21:38:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565127491; bh=qGsun2nBwGKYUuXuCKiiDlZM9Ty0QpT5hz8syLcrrzI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a0Nzr7dVCQNlINWHbrKM5jMpZ2eWzG4mGpI5niMA+wqoZk5G86WMxY/F4+GwluuLu d7nFS3b2HqsTHKXUN+z9CWBnHPjRqu3zwU9wWV76FpaadxuBiwJW0d12ZB3SckZBQz l8IUmgZI0KeSflncIz5eok7ZVXAB67Es/4V8+VYU= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: YueHaibing , Joseph Qi , Mark Fasheh , Joel Becker , Junxiao Bi , Changwei Ge , Gang He , Jun Piao , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH AUTOSEL 4.4 12/14] ocfs2: remove set but not used variable 'last_hash' Date: Tue, 6 Aug 2019 17:37:46 -0400 Message-Id: <20190806213749.20689-12-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190806213749.20689-1-sashal@kernel.org> References: <20190806213749.20689-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing [ Upstream commit 7bc36e3ce91471b6377c8eadc0a2f220a2280083 ] Fixes gcc '-Wunused-but-set-variable' warning: fs/ocfs2/xattr.c: In function ocfs2_xattr_bucket_find: fs/ocfs2/xattr.c:3828:6: warning: variable last_hash set but not used [-Wunused-but-set-variable] It's never used and can be removed. Link: http://lkml.kernel.org/r/20190716132110.34836-1-yuehaibing@huawei.com Signed-off-by: YueHaibing Acked-by: Joseph Qi Cc: Mark Fasheh Cc: Joel Becker Cc: Junxiao Bi Cc: Changwei Ge Cc: Gang He Cc: Jun Piao Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- fs/ocfs2/xattr.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c index 4f0788232f2f9..06faa608e5622 100644 --- a/fs/ocfs2/xattr.c +++ b/fs/ocfs2/xattr.c @@ -3808,7 +3808,6 @@ static int ocfs2_xattr_bucket_find(struct inode *inode, u16 blk_per_bucket = ocfs2_blocks_per_xattr_bucket(inode->i_sb); int low_bucket = 0, bucket, high_bucket; struct ocfs2_xattr_bucket *search; - u32 last_hash; u64 blkno, lower_blkno = 0; search = ocfs2_xattr_bucket_new(inode); @@ -3852,8 +3851,6 @@ static int ocfs2_xattr_bucket_find(struct inode *inode, if (xh->xh_count) xe = &xh->xh_entries[le16_to_cpu(xh->xh_count) - 1]; - last_hash = le32_to_cpu(xe->xe_name_hash); - /* record lower_blkno which may be the insert place. */ lower_blkno = blkno; -- 2.20.1