From patchwork Wed Jul 20 19:48:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xin Gao X-Patchwork-Id: 592093 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE9F1C433EF for ; Wed, 20 Jul 2022 19:48:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230019AbiGTTsf (ORCPT ); Wed, 20 Jul 2022 15:48:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbiGTTse (ORCPT ); Wed, 20 Jul 2022 15:48:34 -0400 Received: from smtpbg.qq.com (biz-43-154-54-12.mail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 898DE21251; Wed, 20 Jul 2022 12:48:29 -0700 (PDT) X-QQ-mid: bizesmtp79t1658346498tq4heer9 Received: from harry-jrlc.. ( [125.70.163.183]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 21 Jul 2022 03:48:09 +0800 (CST) X-QQ-SSF: 0100000000200030C000C00A0000020 X-QQ-FEAT: hoArX50alxF+DlkLpK/znEs8vSXXS42yNM8fy/pw1WkpLuttolCDx8u4ZxPru +3fomMndDQLzvzKL9GxM8ipflxICWic0CIb7fbX4tUBgmzkhOZW7ih6yCHr9QhR0w/dF8Bd yvccaCovBdCc+1PX1AOMkbbGdOqPPfd5l8/umQA/koLOYIudYCZyXEhAMEup4gKW+bDXgFa KYhJTKZuhx+eMkRvqvexuFyF1o+1+oG08VJ9eyZRom9VcQfBE8NRjvxP8iFPw2LyMBJYRoN V3UvS9pfRVlK2nQijOVtRn9bugW9kyCEIkhUBoa8TTauz9ziyGJb+6VmMrfOhAUH7CHuc/0 mZC5uQvI2a9UlE0khMLGsHTUKGuu+Q+PnyHRn3ax0LuLt3msvzeIVK+LGK80w== X-QQ-GoodBg: 0 From: Xin Gao To: balbi@kernel.org Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Xin Gao Subject: [PATCH] USB:do not initialise statics to 0. Date: Thu, 21 Jul 2022 03:48:08 +0800 Message-Id: <20220720194808.8799-1-gaoxin@cdjrlc.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybglogicsvr:qybglogicsvr6 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org do not initialise statics to 0. Signed-off-by: Xin Gao --- drivers/usb/gadget/legacy/zero.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {