diff mbox series

USB:do not initialise statics to 0.

Message ID 20220720194808.8799-1-gaoxin@cdjrlc.com (mailing list archive)
State New, archived
Headers show
Series USB:do not initialise statics to 0. | expand

Commit Message

Xin Gao July 20, 2022, 7:48 p.m. UTC
do not initialise statics to 0.

Signed-off-by: Xin Gao <gaoxin@cdjrlc.com>
---
 drivers/usb/gadget/legacy/zero.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Greg KH July 20, 2022, 8:34 p.m. UTC | #1
On Thu, Jul 21, 2022 at 03:48:08AM +0800, Xin Gao wrote:
> do not initialise statics to 0.

Why not?

You need to be very specific in changelog texts please.

greg k-h
diff mbox series

Patch

diff --git a/drivers/usb/gadget/legacy/zero.c b/drivers/usb/gadget/legacy/zero.c
index 23312a07efb4..c5f6d496064b 100644
--- a/drivers/usb/gadget/legacy/zero.c
+++ b/drivers/usb/gadget/legacy/zero.c
@@ -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 = {