media: mantis: fix two smatch errors
[sfrench/cifs-2.6.git] / drivers / media / pci / mantis / mantis_cards.c
index deadd0b92233a5aadb1529a28a00ede4f616bd4f..906e4500d87db7c8258c474b1dc29ea3bf85406c 100644 (file)
@@ -69,10 +69,8 @@ static irqreturn_t mantis_irq_handler(int irq, void *dev_id)
        struct mantis_ca *ca;
 
        mantis = (struct mantis_pci *) dev_id;
-       if (unlikely(mantis == NULL)) {
-               dprintk(MANTIS_ERROR, 1, "Mantis == NULL");
+       if (unlikely(!mantis))
                return IRQ_NONE;
-       }
        ca = mantis->mantis_ca;
 
        stat = mmread(MANTIS_INT_STAT);