]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging/comedi: Use bool initializations
authorPeter Huewe <peterhuewe@gmx.de>
Mon, 21 Jan 2013 20:29:43 +0000 (21:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jan 2013 22:22:49 +0000 (14:22 -0800)
Found with coccicheck.

The semantic patch that makes this output is available
in scripts/coccinelle/misc/boolinit.cocci.

More information about semantic patching is available at
http://coccinelle.lip6.fr/

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_fops.c

index 3e82ab9bc51be3899918cfcc928228345b0d25fb..dc3588a2c98b946db6bf1f1496bd1b8478b733a6 100644 (file)
@@ -58,7 +58,7 @@ MODULE_PARM_DESC(comedi_debug,
                );
 #endif
 
-bool comedi_autoconfig = 1;
+bool comedi_autoconfig = true;
 module_param(comedi_autoconfig, bool, S_IRUGO);
 MODULE_PARM_DESC(comedi_autoconfig,
                 "enable drivers to auto-configure comedi devices (default 1)");
@@ -2437,7 +2437,7 @@ static int __init comedi_init(void)
         * comedi_num_legacy_minors are zero, so we might as well adjust the
         * defaults in that case
         */
-       if (comedi_autoconfig == 0 && comedi_num_legacy_minors == 0)
+       if (!comedi_autoconfig && comedi_num_legacy_minors == 0)
                comedi_num_legacy_minors = 16;
 
        memset(comedi_file_info_table, 0,