From patchwork Wed Jun 9 09:47:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Wang X-Patchwork-Id: 457306 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73568C47095 for ; Wed, 9 Jun 2021 09:48:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 578F161375 for ; Wed, 9 Jun 2021 09:48:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234463AbhFIJuY (ORCPT ); Wed, 9 Jun 2021 05:50:24 -0400 Received: from smtpbgsg2.qq.com ([54.254.200.128]:44124 "EHLO smtpbgsg2.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232867AbhFIJuY (ORCPT ); Wed, 9 Jun 2021 05:50:24 -0400 X-Greylist: delayed 77913 seconds by postgrey-1.27 at vger.kernel.org; Wed, 09 Jun 2021 05:50:23 EDT X-QQ-mid: bizesmtp47t1623232098t5dm3y2h Received: from localhost.localdomain (unknown [182.148.12.106]) by esmtp6.qq.com (ESMTP) with id ; Wed, 09 Jun 2021 17:48:16 +0800 (CST) X-QQ-SSF: 01000000007000207000B00A0000000 X-QQ-FEAT: zqIuYHvuydxzkEdvYoc6NyZRcS3yR/bOPKdePmVgf3PadKVkKS0SylSZUQN1D 9Dnw2mz88GF/udNJeT5jItFVX9Ojo4lcOUBb2pVmHJrMC6VKGrikV5/wRSPn5xMp6W9RtNy QTIlIUJqDeJk/8b6hvkYddXprsbmyS/TlhzsvjlMjpISwPSkO9u2VVWRLn0WUWocF6Zdw6p l/u2GhLyjdhLD0qXu6gKM96/l39fbVRSREE1nMv+21fVgFQpK+5BShLhrz/yan2oolXe10m KZEzqXMGe4bJTzumFbTx1TLQUPDqm5XaGJXi/2lNp5C4SZo88heSp+GP4= X-QQ-GoodBg: 0 From: Jason Wang To: stern@rowland.harvard.edu Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Jason Wang Subject: [PATCH] usb: ehci: do not initialise static variables Date: Wed, 9 Jun 2021 17:47:26 +0800 Message-Id: <20210609094726.62459-1-wangborong@cdjrlc.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybgforeign:qybgforeign7 X-QQ-Bgrelay: 1 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Global static variables dont need to be initialised manully. Signed-off-by: Jason Wang --- drivers/usb/host/ehci-hcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 35eec0c0edcd..36f5bf6a0752 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -76,12 +76,12 @@ static const char hcd_name [] = "ehci_hcd"; #define EHCI_TUNE_FLS 1 /* (medium) 512-frame schedule */ /* Initial IRQ latency: faster than hw default */ -static int log2_irq_thresh = 0; // 0 to 6 +static int log2_irq_thresh; // 0 to 6 module_param (log2_irq_thresh, int, S_IRUGO); MODULE_PARM_DESC (log2_irq_thresh, "log2 IRQ latency, 1-64 microframes"); /* initial park setting: slower than hw default */ -static unsigned park = 0; +static unsigned park; module_param (park, uint, S_IRUGO); MODULE_PARM_DESC (park, "park setting; 1-3 back-to-back async packets");