Commit 5f1693fe authored by Akinobu Mita's avatar Akinobu Mita Committed by Mauro Carvalho Chehab

V4L/DVB (4997): Bttv: delete duplicated ioremap()

ioremap() is called twice to same resource.
The returen value of first one is not error-checked.
second one is complely ignored.
Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 25821400
...@@ -4050,8 +4050,8 @@ static int __devinit bttv_probe(struct pci_dev *dev, ...@@ -4050,8 +4050,8 @@ static int __devinit bttv_probe(struct pci_dev *dev,
(unsigned long long)pci_resource_start(dev,0)); (unsigned long long)pci_resource_start(dev,0));
schedule(); schedule();
btv->bt848_mmio=ioremap(pci_resource_start(dev,0), 0x1000); btv->bt848_mmio = ioremap(pci_resource_start(dev, 0), 0x1000);
if (NULL == ioremap(pci_resource_start(dev,0), 0x1000)) { if (NULL == btv->bt848_mmio) {
printk("bttv%d: ioremap() failed\n", btv->c.nr); printk("bttv%d: ioremap() failed\n", btv->c.nr);
result = -EIO; result = -EIO;
goto fail1; goto fail1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment