staging: comedi: make 'dev->attached' a bool bit-field
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / staging / comedi / drivers / s626.c
index cd164ee3a5e1a880271e0a675165a5ff63da55e3..d1560524fc14c83ef6d03ac04d902ac3621d7116 100644 (file)
@@ -758,7 +758,7 @@ static irqreturn_t s626_irq_handler(int irq, void *d)
        uint8_t group;
        uint16_t irqbit;
 
-       if (dev->attached == 0)
+       if (!dev->attached)
                return IRQ_NONE;
        /*  lock to avoid race with comedi_poll */
        spin_lock_irqsave(&dev->spinlock, flags);