summaryrefslogtreecommitdiff
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-04-26 12:41:47 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-28 14:15:27 +0300
commitb9cf2cb524338c1257babb212420176e9e22f14a (patch)
treebf207b97cdc9acba4a983991337cdc0fc1b4811e /drivers/usb/core
parent1417cff96ef8ae2108df7084f035b90d2eabbba3 (diff)
downloadlinux-b9cf2cb524338c1257babb212420176e9e22f14a.tar.xz
usb: core: hub: use true,false for bool variable
Fix the following coccicheck warning: drivers/usb/core/hub.c:95:12-28: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan <yanaijie@huawei.com> Link: https://lore.kernel.org/r/20200426094147.23467-1-yanaijie@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/hub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 2b6565c06c23..8d2f49e92524 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -92,7 +92,7 @@ module_param(old_scheme_first, bool, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(old_scheme_first,
"start with the old device initialization scheme");
-static bool use_both_schemes = 1;
+static bool use_both_schemes = true;
module_param(use_both_schemes, bool, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(use_both_schemes,
"try the other device initialization scheme if the "