Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -2
+1 -2
drivers/atm/solos-pci.c
··· 527 527 { 528 528 const struct firmware *fw; 529 529 const char *fw_name; 530 - uint32_t data32 = 0; 531 530 int blocksize = 0; 532 531 int numblocks = 0; 533 532 int offset; ··· 575 576 576 577 dev_info(&card->dev->dev, "Changing FPGA to Update mode\n"); 577 578 iowrite32(1, card->config_regs + FPGA_MODE); 578 - data32 = ioread32(card->config_regs + FPGA_MODE); 579 + (void) ioread32(card->config_regs + FPGA_MODE); 579 580 580 581 /* Set mode to Chip Erase */ 581 582 if(chip == 0 || chip == 2)