summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPeter Huewe <peterhuewe@gmx.de>2013-01-21 21:29:43 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-21 23:22:49 +0100
commit24d8e51ef3671f7dff0aaee0f3cf4c55d33c7292 (patch)
treef554139bcc8ef5fcb89ac8179ce0f32399032194 /drivers
parentStaging: comedi: enable it to build on all arches (diff)
downloadlinux-24d8e51ef3671f7dff0aaee0f3cf4c55d33c7292.tar.xz
linux-24d8e51ef3671f7dff0aaee0f3cf4c55d33c7292.zip
staging/comedi: Use bool initializations
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/comedi_fops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c
index 3e82ab9bc51b..dc3588a2c98b 100644
--- a/drivers/staging/comedi/comedi_fops.c
+++ b/drivers/staging/comedi/comedi_fops.c
@@ -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,