]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/staging/comedi/drivers/cb_pcidas64.c
staging: comedi: fix signess bug
[net-next-2.6.git] / drivers / staging / comedi / drivers / cb_pcidas64.c
index 9b1dd3cc2120628cd3dbba8cc429d5f91d5d380e..2583e16cd02a3a202e9800739f4175f538c429e3 100644 (file)
@@ -3078,7 +3078,7 @@ static void handle_ai_interrupt(struct comedi_device *dev,
                        spin_unlock_irqrestore(&dev->spinlock, flags);
        }
        /*  if we are have all the data, then quit */
-       if ((cmd->stop_src == TRIG_COUNT && priv(dev)->ai_count <= 0) ||
+       if ((cmd->stop_src == TRIG_COUNT && (int)priv(dev)->ai_count <= 0) ||
            (cmd->stop_src == TRIG_EXT && (status & ADC_STOP_BIT))) {
                async->events |= COMEDI_CB_EOA;
        }