]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/sunrpc/xdr.c
SUNRPC: drop pointless static qualifier in xdr_get_next_encode_buffer()
authorYueHaibing <yuehaibing@huawei.com>
Thu, 8 Nov 2018 02:04:57 +0000 (02:04 +0000)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 02:00:23 +0000 (20:00 -0600)
commitc146d97b7261c60b7adc1d2fc10de30270d0376d
treee2de83cb406086606aa55993c097700eccce13cf
parent2821914cd42977e15cc5d5eb25753bb0baa70956
SUNRPC: drop pointless static qualifier in xdr_get_next_encode_buffer()

BugLink: https://bugs.launchpad.net/bugs/1836968
[ Upstream commit 025911a5f4e36955498ed50806ad1b02f0f76288 ]

There is no need to have the '__be32 *p' variable static since new value
always be assigned before use it.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/sunrpc/xdr.c