Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp537397imu; Wed, 23 Jan 2019 00:52:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN5npJHiVqBhU+dI7lg1IbloRRi9kJwBJF4sefR3V3FM0kcTN17OpMUK+2pZ2UJMlAvIRcMr X-Received: by 2002:a63:61c1:: with SMTP id v184mr1253132pgb.54.1548233567153; Wed, 23 Jan 2019 00:52:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548233567; cv=none; d=google.com; s=arc-20160816; b=jiYCe20lnJx7/lMvhm03G84LcQ3/0NFDZ6QYuirzVY8MB3OgMFzUztN9n9GptEb+yf mfvwMyqcDtA4rzWTBvV5Pte2swYJmItKXQTdViBTcrDtxD7Gh3lIi6WrbXGoGyAPZ11/ ARCh0BglUQPX30I4NlOnnXQojZb0N8RiRPQ3OBKyd/IJrH+6f4BbdrfQ78PZqfamZ/pR efSa6Cu0Qyj5v5319gn0CZSE6LWYI/1AigV2X4BJQdzcIQ5uG7SK2m8dlrX5uNdciSDP LMYLNC7RFXkM8nbcNV81bg5wY6dBRz/xyMAPxv1l2LJsevSNe7SqnldD9ZJbd/cxlQYm EDNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=WHpIM5/8xXbzB+P3HlA16aJuCKVF8msrZPMhTjxJNvI=; b=KWObg0wuYtHsQhQXDYn7RUPWS8PjukdIJ/SjgKSDZWgbfYi6IZOXKWl57E+UArZ3Ai P/ra9jhv6CqyTGwNY0i9xYT7xsDVLpkFvL6ZPRBuPTioimnJrsyYb5VF6nhuW+0bQspU ZUO0zq/UjSEXhaSPhkmKVNkSB6KaIyhTtikOxKCUAmVjrwAAHpn3LSsTz7+SMCLTlj5G 9pBts/zFk3x8rn6lYwRZz7Mqf4FGj3SicYAjnynGDAtuLkxddPpZu7FAxiTqRM7h3UJX j7AKTYW3Jm5fao+HhQ8883/yBshtzc9S7spYGqWGCEkH2YHC8btqRUmopbimmnwsPy5C GDaQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u25si18055564pgm.532.2019.01.23.00.52.32; Wed, 23 Jan 2019 00:52:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727110AbfAWIvB (ORCPT + 99 others); Wed, 23 Jan 2019 03:51:01 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:60346 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725991AbfAWIvB (ORCPT ); Wed, 23 Jan 2019 03:51:01 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 2844441B27885080B972; Wed, 23 Jan 2019 16:50:58 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.408.0; Wed, 23 Jan 2019 16:50:48 +0800 From: YueHaibing To: , , CC: , , YueHaibing Subject: [PATCH -next] gpio: davinci: drop pointless static qualifier Date: Wed, 23 Jan 2019 16:49:12 +0800 Message-ID: <20190123084912.13376-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to have the 'gpio_unbanked' variable static since new value always be assigned before use it. 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; -- 2.7.0