diff options
author | David S. Miller <davem@davemloft.net> | 2011-04-17 09:11:25 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-17 09:11:25 +0200 |
commit | 06091ed6b8ec726e6cbc7e40ee6b5aa2332cf381 (patch) | |
tree | 385b09b62ef28a3403404f65c2382401304c3146 /drivers/atm/solos-pci.c | |
parent | atm: idt77252: Fix set-but-unused variables. (diff) | |
download | linux-06091ed6b8ec726e6cbc7e40ee6b5aa2332cf381.tar.xz linux-06091ed6b8ec726e6cbc7e40ee6b5aa2332cf381.zip |
atm: solos-pci: Fix set-but-unused variable.
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>
Diffstat (limited to 'drivers/atm/solos-pci.c')
-rw-r--r-- | drivers/atm/solos-pci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c index cd0ff66469b2..5d1d07645132 100644 --- a/drivers/atm/solos-pci.c +++ b/drivers/atm/solos-pci.c @@ -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) |