OSDN Git Service

PCI: rpaphp: Remove unused variable 'value'
authorChen Zhou <chenzhou10@huawei.com>
Thu, 12 Mar 2020 14:04:12 +0000 (22:04 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 25 Mar 2020 01:09:27 +0000 (12:09 +1100)
commit9475af081ec1fb6cc794a17ae90f2c01aa8a7993
tree8f0a7caefe88521a02accd3d01c73df55c8267fd
parent697ece78f8f749aeea40f2711389901f0974017a
PCI: rpaphp: Remove unused variable 'value'

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

drivers/pci/hotplug/rpaphp_core.c: In function is_php_type:
drivers/pci/hotplug/rpaphp_core.c:291:16: warning:
variable value set but not used [-Wunused-but-set-variable]

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200312140412.32373-1-chenzhou10@huawei.com
drivers/pci/hotplug/rpaphp_core.c