Skip to content

Commit

Permalink
atm: solos-pci: Fix set-but-unused variable.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
davem330 committed Apr 17, 2011
1 parent edb4dcb commit 06091ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/atm/solos-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 06091ed

Please sign in to comment.