V4L/DVB (5768): Ivtv: fix converity warning
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
4052fcc7ba
commit
27b5a3957a
@@ -1289,10 +1289,7 @@ static void ivtv_remove(struct pci_dev *pci_dev)
|
|||||||
|
|
||||||
IVTV_DEBUG_INFO(" Releasing irq.\n");
|
IVTV_DEBUG_INFO(" Releasing irq.\n");
|
||||||
free_irq(itv->dev->irq, (void *)itv);
|
free_irq(itv->dev->irq, (void *)itv);
|
||||||
|
|
||||||
if (itv->dev) {
|
|
||||||
ivtv_iounmap(itv);
|
ivtv_iounmap(itv);
|
||||||
}
|
|
||||||
|
|
||||||
IVTV_DEBUG_INFO(" Releasing mem.\n");
|
IVTV_DEBUG_INFO(" Releasing mem.\n");
|
||||||
release_mem_region(itv->base_addr, IVTV_ENCODER_SIZE);
|
release_mem_region(itv->base_addr, IVTV_ENCODER_SIZE);
|
||||||
|
Reference in New Issue
Block a user