History

drivers: usb: removed assignment of 0 to static variables

fixing the error reported by script checkpatch.pl static variables blinkenlights and old_scheme_first were initialised to 0, correcting it.

Saurabh Sengar committed 11 years ago

Commit a44007a1 parent b1249ab1 file · +2 −2Browse files

Unified · Split

drivers/usb/core/hub.c+2−2
@@ -49,7 +49,7 @@ static void hub_event(struct work_struct *work); · 48 unmodified lines
4949 DEFINE_MUTEX(usb_port_peer_mutex);
5050
5151 /* cycle leds on hubs that aren't blinking for attention */
52−static bool blinkenlights = 0;
52+static bool blinkenlights;
5353 module_param(blinkenlights, bool, S_IRUGO);
5454 MODULE_PARM_DESC(blinkenlights, "true to cycle leds on hubs");
5555
@@ -78,7 +78,7 @@ MODULE_PARM_DESC(initial_descriptor_timeout, · 22 unmodified lines
7878 * otherwise the new scheme is used. If that fails and "use_both_schemes"
7979 * is set, then the driver will make another attempt, using the other scheme.
8080 */
81−static bool old_scheme_first = 0;
81+static bool old_scheme_first;
8282 module_param(old_scheme_first, bool, S_IRUGO | S_IWUSR);
8383 MODULE_PARM_DESC(old_scheme_first,
8484 "start with the old device initialization scheme");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t