fixing the error reported by script checkpatch.pl static variables blinkenlights and old_scheme_first were initialised to 0, correcting it.
Unified · Split
| @@ -49,7 +49,7 @@ static void hub_event(struct work_struct *work); · 48 unmodified lines | ||
| 49 | 49 | DEFINE_MUTEX(usb_port_peer_mutex); |
| 50 | 50 | |
| 51 | 51 | /* cycle leds on hubs that aren't blinking for attention */ |
| 52 | −static bool blinkenlights = 0; | |
| 52 | +static bool blinkenlights; | |
| 53 | 53 | module_param(blinkenlights, bool, S_IRUGO); |
| 54 | 54 | MODULE_PARM_DESC(blinkenlights, "true to cycle leds on hubs"); |
| 55 | 55 | |
| @@ -78,7 +78,7 @@ MODULE_PARM_DESC(initial_descriptor_timeout, · 22 unmodified lines | ||
| 78 | 78 | * otherwise the new scheme is used. If that fails and "use_both_schemes" |
| 79 | 79 | * is set, then the driver will make another attempt, using the other scheme. |
| 80 | 80 | */ |
| 81 | −static bool old_scheme_first = 0; | |
| 81 | +static bool old_scheme_first; | |
| 82 | 82 | module_param(old_scheme_first, bool, S_IRUGO | S_IWUSR); |
| 83 | 83 | MODULE_PARM_DESC(old_scheme_first, |
| 84 | 84 | "start with the old device initialization scheme"); |