]> www.infradead.org Git - users/dwmw2/linux.git/commit
ocfs2: remove set but not used variable 'last_hash'
authorYueHaibing <yuehaibing@huawei.com>
Sat, 3 Aug 2019 04:48:40 +0000 (21:48 -0700)
committerSasha Levin <sashal@kernel.org>
Sun, 25 Aug 2019 14:10:34 +0000 (10:10 -0400)
commit8abc1d5f1c9e03bc929b3d1319404bfc1b22b2da
tree1dcbc3c0de6629f39f2fea6a8fff383afb977dee
parentb1d93b7227ec59f3430dbfd6405cc634282549d5
ocfs2: remove set but not used variable 'last_hash'

[ 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 <yuehaibing@huawei.com>
Acked-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ocfs2/xattr.c