mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 10:24:01 -04:00
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: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
2582140035
commit
5f1693fe82
@@ -4050,8 +4050,8 @@ static int __devinit bttv_probe(struct pci_dev *dev,
|
||||
(unsigned long long)pci_resource_start(dev,0));
|
||||
schedule();
|
||||
|
||||
btv->bt848_mmio=ioremap(pci_resource_start(dev,0), 0x1000);
|
||||
if (NULL == ioremap(pci_resource_start(dev,0), 0x1000)) {
|
||||
btv->bt848_mmio = ioremap(pci_resource_start(dev, 0), 0x1000);
|
||||
if (NULL == btv->bt848_mmio) {
|
||||
printk("bttv%d: ioremap() failed\n", btv->c.nr);
|
||||
result = -EIO;
|
||||
goto fail1;
|
||||
|
||||
Reference in New Issue
Block a user