OSDN Git Service

powerpc/spider-pci: Remove set but not used variable 'val'
authorBaokun Li <libaokun1@huawei.com>
Tue, 1 Jun 2021 08:53:19 +0000 (16:53 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 15 Jun 2021 07:12:27 +0000 (17:12 +1000)
commitf377f7da26d2af87e2ddc39190546f62ecdb2bd8
treea84b669d696cb4b7c57b0a023aace467377d407a
parent911bacda4658129bee039dc90fc0c3f193ee2695
powerpc/spider-pci: Remove set but not used variable 'val'

Fixes gcc '-Wunused-but-set-variable' warning:
# WARNING: Fixes tag on line 3 doesn't match correct format
# WARNING: Fixes tag on line 3 doesn't match correct format
# WARNING: Fixes tag on line 3 doesn't match correct format
# WARNING: Fixes tag on line 3 doesn't match correct format
# WARNING: Fixes tag on line 3 doesn't match correct format
# WARNING: Fixes tag on line 3 doesn't match correct format

arch/powerpc/platforms/cell/spider-pci.c: In function 'spiderpci_io_flush':
arch/powerpc/platforms/cell/spider-pci.c:28:6: warning:
variable ‘val’ set but not used [-Wunused-but-set-variable]

It never used since introduction.

Signed-off-by: Baokun Li <libaokun1@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210601085319.140461-1-libaokun1@huawei.com
arch/powerpc/platforms/cell/spider-pci.c