Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp616442imu; Wed, 23 Jan 2019 02:34:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN6Dqop3Ki3uXOuOXIUDkhuQoP1uRAUhZR2kT3jCxcYfe0aDORBqDeAbGGNK4TNdI3K15Tih X-Received: by 2002:a63:dd15:: with SMTP id t21mr1410247pgg.347.1548239651006; Wed, 23 Jan 2019 02:34:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548239650; cv=none; d=google.com; s=arc-20160816; b=WRdZnODnYIlFUGX3ahnKaRAXt2MTaOXnUEtf1VhBldAwC/deb6GZOo2Owot2JD1BzK HkHVYNTAOMhWVcEhmL/UrYqWNu4HSpkbSMrLVlAbVN7EpTCTzG9KufJBT1iUUf1F9eeS D+ApftEzR8TZx0Yf81CPb9iyVEL+F918JjrAGd0Nzecap1w1171K5o9dUnNBxhIy+Gli vuiGmPJJLy3l7FaAmr5YZqPyqzdMmpRWKBStC/eGVLVXxxaz1D1KvAeGNHN1HBydDEOx SoXcASWV1EzG16hxGXAuyyKTwW6ur9cgjI1ONv34JP/Kx/hAzwyWOWnS9tQKlcyPHFFX Dvsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=P84rh3Cwz7OaTIl6biLAW6jVY5R58OzZM/jIRFwaXs4=; b=fuifVFIeepXy9M0+urM/PNi0Yniz1f9a2oyXKhHnaq5nsnvAbUcsZLp4hxDGiv6ZBn HU1iJu3A34VDBmCCadTI9RcX+yyJTmWkn1am8rE/A+AEIQQpHJVzUhofZFn1Q50749Vv mgdiwnX3gYKlKb4UL+RsGLRI5Wx5+DZJf/SGOXl4ePYIj4U+cJ6XVDKNgIW6Z/uG4u1S TGF1DeKkX4Mm2N7a8bt/bri+Em/+jLoM8yBmO5UyWWc7HwsN47iXTh9hdqEvBoEMdNbf AVqm2H2b6VNJ/z5Axrx16d4AfesZPO9ktttEdxF+uYNtZD8cQEyf2YqkfErqV2/Sdow9 GNlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=P29qBb29; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s4si18157787pga.377.2019.01.23.02.33.55; Wed, 23 Jan 2019 02:34:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=P29qBb29; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727208AbfAWKcr (ORCPT + 99 others); Wed, 23 Jan 2019 05:32:47 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:52590 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726207AbfAWKcr (ORCPT ); Wed, 23 Jan 2019 05:32:47 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x0NAWfgQ042397; Wed, 23 Jan 2019 04:32:41 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1548239561; bh=P84rh3Cwz7OaTIl6biLAW6jVY5R58OzZM/jIRFwaXs4=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=P29qBb29YoChMFaPRUWeFO32xD/5WMvDsNL9khLN8u5BtM3zs6jynKlnkYwUz/tTq zfVjkwPTTIdC8/Gby4petxKSNieGgJIoEdOkOuGRhMzA+G6tzvgZSJ8C7BVVv+yUu7 7O2CYKkUV36p+H4bfetD7qaYxCGaeBN3WIvBImb8= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x0NAWeN4075587 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 23 Jan 2019 04:32:40 -0600 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Wed, 23 Jan 2019 04:32:40 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Wed, 23 Jan 2019 04:32:40 -0600 Received: from [172.24.191.45] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x0NAWcNV010195; Wed, 23 Jan 2019 04:32:39 -0600 Subject: Re: [PATCH -next] gpio: davinci: drop pointless static qualifier To: YueHaibing , , CC: , References: <20190123084912.13376-1-yuehaibing@huawei.com> From: Keerthy Message-ID: Date: Wed, 23 Jan 2019 16:02:41 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190123084912.13376-1-yuehaibing@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/01/19 2:19 PM, YueHaibing wrote: > There is no need to have the 'gpio_unbanked' variable static since > new value always be assigned before use it. Acked-by: Keerthy > > Signed-off-by: YueHaibing > --- > drivers/gpio/gpio-davinci.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c > index bdb29e5..f250454 100644 > --- a/drivers/gpio/gpio-davinci.c > +++ b/drivers/gpio/gpio-davinci.c > @@ -465,7 +465,7 @@ static const struct irq_domain_ops davinci_gpio_irq_ops = { > > static struct irq_chip *davinci_gpio_get_irq_chip(unsigned int irq) > { > - static struct irq_chip_type gpio_unbanked; > + struct irq_chip_type gpio_unbanked; > > gpio_unbanked = *irq_data_get_chip_type(irq_get_irq_data(irq)); > > @@ -474,7 +474,7 @@ static struct irq_chip *davinci_gpio_get_irq_chip(unsigned int irq) > > static struct irq_chip *keystone_gpio_get_irq_chip(unsigned int irq) > { > - static struct irq_chip gpio_unbanked; > + struct irq_chip gpio_unbanked; > > gpio_unbanked = *irq_get_chip(irq); > return &gpio_unbanked; >