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
49DEFINE_MUTEX(usb_port_peer_mutex);49DEFINE_MUTEX(usb_port_peer_mutex);
50 50
51/* cycle leds on hubs that aren't blinking for attention */51/* cycle leds on hubs that aren't blinking for attention */
52static bool blinkenlights = 0;52static bool blinkenlights;
53module_param(blinkenlights, bool, S_IRUGO);53module_param(blinkenlights, bool, S_IRUGO);
54MODULE_PARM_DESC(blinkenlights, "true to cycle leds on hubs");54MODULE_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 * otherwise the new scheme is used. If that fails and "use_both_schemes"78 * otherwise the new scheme is used. If that fails and "use_both_schemes"
79 * is set, then the driver will make another attempt, using the other scheme.79 * is set, then the driver will make another attempt, using the other scheme.
80 */80 */
81static bool old_scheme_first = 0;81static bool old_scheme_first;
82module_param(old_scheme_first, bool, S_IRUGO | S_IWUSR);82module_param(old_scheme_first, bool, S_IRUGO | S_IWUSR);
83MODULE_PARM_DESC(old_scheme_first,83MODULE_PARM_DESC(old_scheme_first,
84 "start with the old device initialization scheme");84 "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