]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xen/pciback: remove set but not used variable 'old_state'
authorYueHaibing <yuehaibing@huawei.com>
Wed, 24 Jul 2019 14:08:50 +0000 (22:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Aug 2019 08:50:10 +0000 (10:50 +0200)
commitd0d12e58188156a2162ae54c23fe089122c0c31e
tree8694f1373899ca7345ef55b9dcb9c5b30cd284f5
parent990ea5ad6744ae919b5e48dfde6b098fd12604f0
xen/pciback: remove set but not used variable 'old_state'

[ Upstream commit 09e088a4903bd0dd911b4f1732b250130cdaffed ]

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

drivers/xen/xen-pciback/conf_space_capability.c: In function pm_ctrl_write:
drivers/xen/xen-pciback/conf_space_capability.c:119:25: warning:
 variable old_state set but not used [-Wunused-but-set-variable]

It is never used so can be removed.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/xen/xen-pciback/conf_space_capability.c