powerpc/powernv/sriov: Remove unused but set variable 'phb'
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 27 Jul 2020 17:11:12 +0000 (01:11 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Jul 2020 12:30:34 +0000 (22:30 +1000)
commitcf1ae052e073c7ef6cf1a783a6427f7228253bd3
tree9500b424828a82e58d22afef8121bee1d8e1897a
parentb6ac59d39a348af29477d7bfdc3ba23526e3f4ea
powerpc/powernv/sriov: Remove unused but set variable 'phb'

Gcc report warning as follows:

arch/powerpc/platforms/powernv/pci-sriov.c:602:25: warning:
 variable 'phb' set but not used [-Wunused-but-set-variable]
  602 |  struct pnv_phb        *phb;
      |                         ^~~

This variable is not used, so this commit removing it.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200727171112.2781-1-weiyongjun1@huawei.com
arch/powerpc/platforms/powernv/pci-sriov.c