diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-12-20 11:08:56 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-12-20 11:08:56 -0200 |
commit | 4a471fc4a3e14c6f31e5941257cde8b2523a57b0 (patch) | |
tree | 78d0fbde1423205471dab587b69671d5ebba0ac0 /linux/drivers | |
parent | df9d83a0677741bef779a81362cde98850e767dc (diff) | |
download | mediapointer-dvb-s2-4a471fc4a3e14c6f31e5941257cde8b2523a57b0.tar.gz mediapointer-dvb-s2-4a471fc4a3e14c6f31e5941257cde8b2523a57b0.tar.bz2 |
Bttv: delete duplicated ioremap()
From: Akinobu Mita <akinobu.mita@gmail.com>
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>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/video/bt8xx/bttv-driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/bt8xx/bttv-driver.c b/linux/drivers/media/video/bt8xx/bttv-driver.c index c07725e7f..225c6e821 100644 --- a/linux/drivers/media/video/bt8xx/bttv-driver.c +++ b/linux/drivers/media/video/bt8xx/bttv-driver.c @@ -4091,8 +4091,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; |