diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-06-15 21:56:21 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-15 23:25:33 +0200 |
commit | 1492a3a7b27e78a51efda143f84ff9674acc8491 (patch) | |
tree | 7bb65ebe2e71fed4d86d155080d86d4e8e93fd42 /drivers/atm/solos-pci.c | |
parent | net: dsa: assign default CPU port to all ports (diff) | |
download | linux-1492a3a7b27e78a51efda143f84ff9674acc8491.tar.xz linux-1492a3a7b27e78a51efda143f84ff9674acc8491.zip |
atm: solos-pci: remove useless variable assignments
Value assigned to variable _data32_ at lines 1254 and 1257 is
overwritten at line 1260 before it can be used. This makes
such variable assignments useless.
Addresses-Coverity-ID: 1227049
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm/solos-pci.c')
-rw-r--r-- | drivers/atm/solos-pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c index 5ad037c07ec7..9115b292e680 100644 --- a/drivers/atm/solos-pci.c +++ b/drivers/atm/solos-pci.c @@ -1251,10 +1251,10 @@ static int fpga_probe(struct pci_dev *dev, const struct pci_device_id *id) if (reset) { iowrite32(1, card->config_regs + FPGA_MODE); - data32 = ioread32(card->config_regs + FPGA_MODE); + ioread32(card->config_regs + FPGA_MODE); iowrite32(0, card->config_regs + FPGA_MODE); - data32 = ioread32(card->config_regs + FPGA_MODE); + ioread32(card->config_regs + FPGA_MODE); } data32 = ioread32(card->config_regs + FPGA_VER); |