]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
atm: solos-pci: Fix set-but-unused variable.
authorDavid S. Miller <davem@davemloft.net>
Sun, 17 Apr 2011 07:11:25 +0000 (00:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Apr 2011 07:11:25 +0000 (00:11 -0700)
This is just a readback to entire completion of a register
write, keep the readback but kill the unused variable.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/solos-pci.c

index cd0ff66469b29b84cd83c894b8139fdda98100fb..5d1d07645132bdce10dfdbe2590a7cb2da8179d3 100644 (file)
@@ -527,7 +527,6 @@ static int flash_upgrade(struct solos_card *card, int chip)
 {
        const struct firmware *fw;
        const char *fw_name;
-       uint32_t data32 = 0;
        int blocksize = 0;
        int numblocks = 0;
        int offset;
@@ -576,7 +575,7 @@ static int flash_upgrade(struct solos_card *card, int chip)
        
        dev_info(&card->dev->dev, "Changing FPGA to Update mode\n");
        iowrite32(1, card->config_regs + FPGA_MODE);
-       data32 = ioread32(card->config_regs + FPGA_MODE); 
+       (void) ioread32(card->config_regs + FPGA_MODE); 
 
        /* Set mode to Chip Erase */
        if(chip == 0 || chip == 2)