From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 884A4C31E40 for ; Tue, 6 Aug 2019 21:39:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5888A2189F for ; Tue, 6 Aug 2019 21:39:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565127549; bh=Y4h+XE7xxckM9vxjU2i7IpMs0sq0dR3huYDgy9zxLyE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=e381T1zuo4aBfz2LfvrTettPTYrTOrPO8FesntpTvrMw7yv0hxRG8p7FEm7E3sUB/ 7nVBPhUzfGDo01LxDqjgpx85FptvG1O7wN1icR6f/E5NvrRC5QtKmQnp068jxNoRdf KfXXt1f9sKUZHyipkBSXrE24Ph1wM8RNR9rQsSxU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729512AbfHFVhu (ORCPT ); Tue, 6 Aug 2019 17:37:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:55462 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727128AbfHFVhp (ORCPT ); Tue, 6 Aug 2019 17:37:45 -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 56A802187F; Tue, 6 Aug 2019 21:37:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565127464; bh=Y4h+XE7xxckM9vxjU2i7IpMs0sq0dR3huYDgy9zxLyE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OjCTLiZWkrYMPyZDg3SGFJz49tmT+ZZXGQi5/d07oBqhtq9ksCu4bbNlqV5ywKoJU 14nTpxnA+uU0+oj5OIdPXU5ncXIITXIWCCkrWuhC5WtKRQFtWjyBt6ltbpE2mmm6mi /cAZsbbNHGj7s9nWwTDaPS+xtm/fvImYpgjDnR0o= 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.9 15/17] ocfs2: remove set but not used variable 'last_hash' Date: Tue, 6 Aug 2019 17:37:12 -0400 Message-Id: <20190806213715.20487-15-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190806213715.20487-1-sashal@kernel.org> References: <20190806213715.20487-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 01932763b4d10..e108c945ac1f8 100644 --- a/fs/ocfs2/xattr.c +++ b/fs/ocfs2/xattr.c @@ -3832,7 +3832,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); @@ -3876,8 +3875,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