diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2006-12-20 08:08:56 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-12-27 11:20:21 -0500 |
commit | 5f1693fe82b499a3306993020ef14011ed0420d0 (patch) | |
tree | 8c8564b364d00de708638d6e34938a5af99cd39b | |
parent | 25821400359d2b3daacfb93303944211b8411ac3 (diff) |
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>
-rw-r--r-- | drivers/media/video/bt8xx/bttv-driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c index 3c8e4742dccc..ab8f970760f2 100644 --- a/drivers/media/video/bt8xx/bttv-driver.c +++ b/drivers/media/video/bt8xx/bttv-driver.c | |||
@@ -4050,8 +4050,8 @@ static int __devinit bttv_probe(struct pci_dev *dev, | |||
4050 | (unsigned long long)pci_resource_start(dev,0)); | 4050 | (unsigned long long)pci_resource_start(dev,0)); |
4051 | schedule(); | 4051 | schedule(); |
4052 | 4052 | ||
4053 | btv->bt848_mmio=ioremap(pci_resource_start(dev,0), 0x1000); | 4053 | btv->bt848_mmio = ioremap(pci_resource_start(dev, 0), 0x1000); |
4054 | if (NULL == ioremap(pci_resource_start(dev,0), 0x1000)) { | 4054 | if (NULL == btv->bt848_mmio) { |
4055 | printk("bttv%d: ioremap() failed\n", btv->c.nr); | 4055 | printk("bttv%d: ioremap() failed\n", btv->c.nr); |
4056 | result = -EIO; | 4056 | result = -EIO; |
4057 | goto fail1; | 4057 | goto fail1; |