]> www.infradead.org Git - users/dwmw2/linux.git/commit
NFS: remove set but not used variable 'mapping'
authorYueHaibing <yuehaibing@huawei.com>
Tue, 27 Aug 2019 07:16:36 +0000 (15:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Sep 2019 05:18:37 +0000 (07:18 +0200)
commit7c1a4283b60675f95c1f97c743e75948de15fc70
tree577439195eb4dc5721f13e801d6e7a0aec4a5b7c
parentde932b20ed88cd9899046b7abc4c20b9a3356f5c
NFS: remove set but not used variable 'mapping'

[ Upstream commit 99300a85260c2b7febd57082a617d1062532067e ]

Fixes gcc '-Wunused-but-set-variable' warning:

fs/nfs/write.c: In function nfs_page_async_flush:
fs/nfs/write.c:609:24: warning: variable mapping set but not used [-Wunused-but-set-variable]

It is not use since commit aefb623c422e ("NFS: Fix
writepage(s) error handling to not report errors twice")

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/write.c