Skip to contentSkip to conversation

USB:do not initialise statics to 0.

PATCH In review Xin Gao 2 participants 2 messages Jul 20, 2022 USB

lore
Share & tools
lore

Xin Gao

author
#0 lore raw

PATCH 1/1 USB:do not initialise statics to 0.

do not initialise statics to 0.

---
 drivers/usb/gadget/legacy/zero.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/legacy/zero.c +1 -1
index 23312a07efb4..c5f6d496064b 100644
@@ -56,7 +56,7 @@ static const char longname[] = "Gadget Zero";
  * work better with hosts where config changes are problematic or
  * controllers (like original superh) that only support one config.
  */
-static bool loopdefault = 0;
+static bool loopdefault;
 module_param(loopdefault, bool, S_IRUGO|S_IWUSR);
 
 static struct usb_zero_options gzero_options = {
Signature · 1 line
2.30.2
maintainer
#1 lore raw
Quoted 1 line · Xin Gao

do not initialise statics to 0.

Why not?

You need to be very specific in changelog texts please.

greg k-h