staging: comedi: make 'dev->attached' a bool bit-field
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / staging / comedi / drivers / ni_pcidio.c
index 2298d6ee12ef0b946622e02211ea0349bcceb01b..3e3a03c49681c10a12d370357d4f4b6d1ce00732 100644 (file)
@@ -420,7 +420,7 @@ static irqreturn_t nidio_interrupt(int irq, void *d)
        unsigned int m_status = 0;
 
        /* interrupcions parasites */
-       if (dev->attached == 0) {
+       if (!dev->attached) {
                /* assume it's from another card */
                return IRQ_NONE;
        }