atm: solos-pci: remove useless variable assignments
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 15 Jun 2017 19:56:21 +0000 (14:56 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Jun 2017 21:25:33 +0000 (17:25 -0400)
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>
drivers/atm/solos-pci.c

index 5ad037c..9115b29 100644 (file)
@@ -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);