diff options
author | Jamal Shareef <jamal.k.shareef@gmail.com> | 2019-10-24 15:39:37 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-24 23:03:00 -0400 |
commit | c671dfdaedefc69000955b3a257538175bcb8aba (patch) | |
tree | 0553ffe71c4b64b4dad59b5d5c2d8c79d0a54e21 /drivers/staging/most | |
parent | 77b97aa69bd08a889c78397193d7390cd6a51122 (diff) | |
download | linux-c671dfdaedefc69000955b3a257538175bcb8aba.tar.gz linux-c671dfdaedefc69000955b3a257538175bcb8aba.tar.bz2 linux-c671dfdaedefc69000955b3a257538175bcb8aba.zip |
staging: most: Change bool init to true/false
Bool initializations should use true and false. Bool tests don't need
comparisons. Based on contributions from Joe Perches, Rusty Russell
and Bruce W Allan.
The semantic patch that makes this report is available
in scripts/coccinelle/misc/boolinit.cocci.
More information about semantic patching is available at
http://coccinelle.lip6.fr/
Signed-off-by: Jamal Shareef <jamal.k.shareef@gmail.com>
Link: https://lore.kernel.org/r/20191024223937.2800-1-jamal.k.shareef@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most')
-rw-r--r-- | drivers/staging/most/configfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/most/configfs.c b/drivers/staging/most/configfs.c index 025495657b68..64c65c217d07 100644 --- a/drivers/staging/most/configfs.c +++ b/drivers/staging/most/configfs.c @@ -487,7 +487,7 @@ static struct config_item *most_snd_grp_make_item(struct config_group *group, return ERR_PTR(-ENOMEM); config_item_init_type_name(&mdev_link->item, name, &mdev_link_type); - mdev_link->create_link = 0; + mdev_link->create_link = false; strcpy(mdev_link->name, name); strcpy(mdev_link->comp, "sound"); return &mdev_link->item; |