Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1863395pxj; Sun, 13 Jun 2021 00:43:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfQvdtvWdVv/qgWzZ6V3AFhcI+tY+sy3eo4yyPoM5trhocPkFdMAwGmwi/W26363ohtwyi X-Received: by 2002:a17:906:9143:: with SMTP id y3mr10379119ejw.465.1623570208638; Sun, 13 Jun 2021 00:43:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623570208; cv=none; d=google.com; s=arc-20160816; b=fGwWdsbpbgCqexS8PPHrIk/ISCUNxtrl9MYfkFUCLuPxFObIBfK5TgGxBjRcsCgzjS 34JcV6Pl6stg8B+n5EE9PI3vjv6m22u3jYS/vH4+eJ1dtr5WEfwBKzhuYz3hOR6jqfp1 hzo+hbBvtukIXgbeSDAs8Ct1dI1mGq76z6fcvS/ka1GA/OItl4Prueq0b/P8fawRDnDG +Zcx7LxSTxETpdYJeABTDxsurC225dFwqYHdb17JngCmLC9jMVkG5zx4qQJJ812jcQ89 mSZ6N9FZBMx/GHfzq/mV6OwDQ/P1XpF9oJISe84uqET1vc3lVSS72y9sFkt5a2RLWxr4 T0ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=qiDKFyzD+Ed8CMnKYvfxgkw1eDwZwPhi+J5YUb3eEw0=; b=mADdO/oac9ThgaalDzoBCpuNBmZUgb/pHU34SiWLWl5tVss1PX2RJes00KVcyKKoRX naiI9+5YSBR2YR/5bURATEXNRkB7JlM9MaebXez5On7paKORuBZH2u2H38vcfFiqrp5L WyLzLqsS7NGmJ23Aaw52jC0+ifol6ahu0jDiAlznmuEKaOk/pNQN9wEXTGQjXEbF1iQi hDLSv+P9Q+EoNbCKlakni1IQ70w0Ip+Y/MXpXTfbI3gxzejIlNTVzICWpHrjJNzHJBwU tDvsWA5xeL/hKM6q0wSWQq7A0d/dv50PyOVomum9JPzA4pojHEQuRut2ZeAsrdpxYela MzsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 11si8994116ejf.43.2021.06.13.00.43.06; Sun, 13 Jun 2021 00:43:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231193AbhFMHni (ORCPT + 99 others); Sun, 13 Jun 2021 03:43:38 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:4053 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230378AbhFMHnh (ORCPT ); Sun, 13 Jun 2021 03:43:37 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G2mc54vF6zWr10; Sun, 13 Jun 2021 15:36:37 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Sun, 13 Jun 2021 15:41:34 +0800 Received: from localhost.localdomain (10.67.165.24) by dggemi759-chm.china.huawei.com (10.1.198.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Sun, 13 Jun 2021 15:41:34 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH net-next 04/11] net: z85230: remove redundant initialization for statics Date: Sun, 13 Jun 2021 15:38:16 +0800 Message-ID: <1623569903-47930-5-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623569903-47930-1-git-send-email-huangguangbin2@huawei.com> References: <1623569903-47930-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggemi759-chm.china.huawei.com (10.1.198.145) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Li Should not initialise statics to 0. Signed-off-by: Peng Li Signed-off-by: Guangbin Huang --- drivers/net/wan/z85230.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wan/z85230.c b/drivers/net/wan/z85230.c index 94ed9a2..f815bb5 100644 --- a/drivers/net/wan/z85230.c +++ b/drivers/net/wan/z85230.c @@ -685,7 +685,7 @@ irqreturn_t z8530_interrupt(int irq, void *dev_id) { struct z8530_dev *dev=dev_id; u8 intr; - static volatile int locker=0; + static int locker; int work=0; struct z8530_irqhandler *irqs; -- 2.8.1