V4L/DVB (5768): Ivtv: fix converity warning
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 16 Jun 2007 19:46:56 +0000 (16:46 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 18 Jul 2007 17:24:10 +0000 (14:24 -0300)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/ivtv/ivtv-driver.c

index 67d9a8f6195722edee27147ea7a1bbfbb5b8d994..28a53c42020db296f6e61f9215dd58c2c0fe85d3 100644 (file)
@@ -1289,10 +1289,7 @@ static void ivtv_remove(struct pci_dev *pci_dev)
 
        IVTV_DEBUG_INFO(" Releasing irq.\n");
        free_irq(itv->dev->irq, (void *)itv);
-
-       if (itv->dev) {
-               ivtv_iounmap(itv);
-       }
+       ivtv_iounmap(itv);
 
        IVTV_DEBUG_INFO(" Releasing mem.\n");
        release_mem_region(itv->base_addr, IVTV_ENCODER_SIZE);