mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
atm: solos-pci: remove useless variable assignments
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>
This commit is contained in:
parent
e4b7778769
commit
1492a3a7b2
1 changed files with 2 additions and 2 deletions
|
@ -1251,10 +1251,10 @@ static int fpga_probe(struct pci_dev *dev, const struct pci_device_id *id)
|
||||||
|
|
||||||
if (reset) {
|
if (reset) {
|
||||||
iowrite32(1, card->config_regs + FPGA_MODE);
|
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);
|
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);
|
data32 = ioread32(card->config_regs + FPGA_VER);
|
||||||
|
|
Loading…
Reference in a new issue