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

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.

Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Saurabh Sengar and committed by
Greg Kroah-Hartman
a44007a4 b1249ab5

+2 -2
+2 -2
drivers/usb/core/hub.c
··· 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 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");