Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2127857pxj; Sun, 13 Jun 2021 09:26:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBp2HdWGFW2TqHv5CVVgCyo+cdI9M1y1TAS6BCmYQYK33TnCwDlGilM2NjFIXdYNpS+W4V X-Received: by 2002:a17:906:2d51:: with SMTP id e17mr11746105eji.500.1623601564155; Sun, 13 Jun 2021 09:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623601564; cv=none; d=google.com; s=arc-20160816; b=lttTxA2blWHYEbQSo2H9X1sP3LRgrVf5E3gO7Y4Hywa+agR1zfYz+BdekJTOHA9l88 SLo1bAjA6UEJSnjmaHBQ03thxNkeNeQiZjw3qPAHS1zsZv1BVP49up/fPlYJe28AZ07x OTaQMBaJcn0O1EKxsSoHnxbnZxC1a63LtAJThF+AlF4OdeDIworyncPF1lH9ep9utkYN YMo1gy0bo+/zcuupMGTQe2LvfLdcdhDool/CQmeqDEwjgdhMzrPa942yYD3WEzGuVeEA /Dd1Ac+7h/8F1uDhMo96L7CvCLgKOIZvGPO+aCNvmAI2T1jLCVj2UK01XN1Xcuy3D3/G iIGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5RksiTEuqrcQH/x1ZKeSyWXWfMMc3Shg0IwC+El1H2k=; b=MNwe2LY4qfnxT/vxHBUmhl3W/gIdkZmOa4YJMrMr/Qz1FCUnV5WcBcnHmPzTAq+kGq ZKkkqL4cEx7I72aj+B2EMpJArWFv+9Y7AwTmi8xuGQuFealnq+vAHAP50xr7uuaY1sYv BkI5JynnZPjPZvJa+pLH62LCU9AWbOS3Jj88uUf02Spoy+kpdBtJUwXoQsAT14mM4bia KNxJfvcohax1HcnD97C2FOzLe9FxMJD3lLe9A4SiNvES1cCgbQyXR2pwUJ7W9YDe35Hi uvEgMFudYg13J+enfGI+JqYObtJkVn//TlCIp9SEhjtOSrU91Si27cHvsGfzM+s6AcZu G8DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=cQFMtn3E; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kq12si11281153ejb.451.2021.06.13.09.25.17; Sun, 13 Jun 2021 09:26:04 -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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=cQFMtn3E; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231962AbhFMQZR (ORCPT + 99 others); Sun, 13 Jun 2021 12:25:17 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:33630 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231782AbhFMQZQ (ORCPT ); Sun, 13 Jun 2021 12:25:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=5RksiTEuqrcQH/x1ZKeSyWXWfMMc3Shg0IwC+El1H2k=; b=cQFMtn3EIwJxSg3KMtag2QW5wF bvK1o0IpojsGU/VDnO0fAGgiuaK0K3TXNzCwJZ2MNlu/PObEbadUBjVR6iHORtDuxXwzRiM5qnRPc OsD2llQXoatvK1rBbGcmIIkqgwnSVtQSH/mkGPqRd7vwV4WHsrtalnS+L2OYT//+lJ14=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1lsSt0-009B1p-Kp; Sun, 13 Jun 2021 18:22:58 +0200 Date: Sun, 13 Jun 2021 18:22:58 +0200 From: Andrew Lunn To: Guangbin Huang Cc: davem@davemloft.net, kuba@kernel.org, xie.he.0141@gmail.com, ms@dev.tdt.de, willemb@google.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, lipeng321@huawei.com Subject: Re: [PATCH net-next 04/11] net: z85230: remove redundant initialization for statics Message-ID: References: <1623569903-47930-1-git-send-email-huangguangbin2@huawei.com> <1623569903-47930-5-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1623569903-47930-5-git-send-email-huangguangbin2@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 13, 2021 at 03:38:16PM +0800, Guangbin Huang wrote: > 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; Is the volatile unneeded? Please document that in the commit message. Andrew