Commit f377f7da authored by Baokun Li's avatar Baokun Li Committed by Michael Ellerman

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: default avatarBaokun Li <libaokun1@huawei.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210601085319.140461-1-libaokun1@huawei.com
parent 911bacda
...@@ -25,10 +25,9 @@ struct spiderpci_iowa_private { ...@@ -25,10 +25,9 @@ struct spiderpci_iowa_private {
static void spiderpci_io_flush(struct iowa_bus *bus) static void spiderpci_io_flush(struct iowa_bus *bus)
{ {
struct spiderpci_iowa_private *priv; struct spiderpci_iowa_private *priv;
u32 val;
priv = bus->private; priv = bus->private;
val = in_be32(priv->regs + SPIDER_PCI_DUMMY_READ); in_be32(priv->regs + SPIDER_PCI_DUMMY_READ);
iosync(); iosync();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment