staging: comedi: change bool assignment to true
authorTeodora Baluta <teobaluta@gmail.com>
Mon, 4 Nov 2013 18:13:10 +0000 (20:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Nov 2013 20:14:54 +0000 (12:14 -0800)
This is a minor fix that was suggested by coccinelle. When defined as a
bool, a variable should use true/false rather than 1/0.

Signed-off-by: Teodora Baluta <teobaluta@gmail.com>
Reviewed-by: Lisa Nguyen <lisa@xenapiadmin.com>
Reviewed-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_dio200_common.c

index 2e4bf284d52c08e5edc7fbd6221563b01cd92e70..9c9559ffc643d55a029bae90152e9338a45dc107 100644 (file)
@@ -513,7 +513,7 @@ static int dio200_subdev_intr_cmd(struct comedi_device *dev,
        int event = 0;
 
        spin_lock_irqsave(&subpriv->spinlock, flags);
-       subpriv->active = 1;
+       subpriv->active = true;
 
        /* Set up end of acquisition. */
        switch (cmd->stop_src) {