Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: ehci: ohci: fix bool assignments

When assigning bool use true instead of 1. If declaring it as static and
it's false there's no need to initialize it, since static variables are
zeroed by default.

Caught by coccinelle.

Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Geyslan G. Bem and committed by
Greg Kroah-Hartman
900937c0 1eaf35e4

+4 -4
+1 -1
drivers/usb/host/ehci-hcd.c
··· 98 98 MODULE_PARM_DESC (park, "park setting; 1-3 back-to-back async packets"); 99 99 100 100 /* for flakey hardware, ignore overcurrent indicators */ 101 - static bool ignore_oc = 0; 101 + static bool ignore_oc; 102 102 module_param (ignore_oc, bool, S_IRUGO); 103 103 MODULE_PARM_DESC (ignore_oc, "ignore bogus hardware overcurrent indications"); 104 104
+2 -2
drivers/usb/host/ohci-hcd.c
··· 99 99 100 100 101 101 /* Some boards misreport power switching/overcurrent */ 102 - static bool distrust_firmware = 1; 102 + static bool distrust_firmware = true; 103 103 module_param (distrust_firmware, bool, 0); 104 104 MODULE_PARM_DESC (distrust_firmware, 105 105 "true to distrust firmware power/overcurrent setup"); 106 106 107 107 /* Some boards leave IR set wrongly, since they fail BIOS/SMM handshakes */ 108 - static bool no_handshake = 0; 108 + static bool no_handshake; 109 109 module_param (no_handshake, bool, 0); 110 110 MODULE_PARM_DESC (no_handshake, "true (not default) disables BIOS handshake"); 111 111
+1 -1
drivers/usb/host/u132-hcd.c
··· 73 73 #define INT_MODULE_PARM(n, v) static int n = v;module_param(n, int, 0444) 74 74 INT_MODULE_PARM(testing, 0); 75 75 /* Some boards misreport power switching/overcurrent*/ 76 - static bool distrust_firmware = 1; 76 + static bool distrust_firmware = true; 77 77 module_param(distrust_firmware, bool, 0); 78 78 MODULE_PARM_DESC(distrust_firmware, "true to distrust firmware power/overcurren" 79 79 "t setup");