Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6896378imm; Tue, 24 Jul 2018 05:10:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdkG9KEju+bnHxTjF5C6Cf52vE5ShYAO/luI8KGxDGiy7zwU27I6BoLSYqdXulhdWTvEaXZ X-Received: by 2002:a17:902:6b09:: with SMTP id o9-v6mr16646381plk.256.1532434222129; Tue, 24 Jul 2018 05:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532434222; cv=none; d=google.com; s=arc-20160816; b=xrFNsldazSi7bW+zHCDN/v8kfsQLl3N21n3gq0F9U/667MLYPj9L0/UzRGilD2eC/K 0aFviI28fdi2hlmveCVTkg2Rh56nhwv2f1vy73LLRKYpZlAGMOzsl9QpduKOvdmx2P9d KhnpZrZjSdgWC7ZqsJTqArcotQ8IbLQFLMZ0UgY1vBuXpCkSa7xVUV4bznjXiv6tnEqr wzjqraWGwXjff7XjtQlgRvsqoYsrw71iOUgvl72kyATxhOIEVJYukJmIfFBQxAUzLDL2 u1dUei4kloC7Kl1lT9d22Vryghc/LRiz/GKHKgBCsUkeFqteZxcQknvL3104qXDHiyQM WnIw== 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:arc-authentication-results; bh=HMma/4DIT77k++nTOtwuvVfWjIW1XatUV7Axk4I8220=; b=LScmLiMQAilDp6CA1lTlyse96pr7/up4Q+Z2pYR745PondPXaJawrdAcvNe12Z9zsz 1Ok3cZefJ6qb6WDOVz2FP6mTyenJrzbJDKznuzWzqEbCO2j1SmhEnWya1JOSuvEp0Qmm 9P7yrcgA5gTkCPaS7yqmGP+bkFWSFeGt9QBVIxzSaKxqAvfIlFIRAH8DGGr8x6kR1BJu TQxauK15TrxNHG0pKrFnfXlkCWu0xewjjWIR/gFlyzhXCGNElLtGGQ0qRZ9jOxQhnZYD 0iVp6vdQ1s+GniOYZ8HUjQMN6uHJXcCI+jyG3bJraAg4eVv/pGjuP+v4Gy4ZwiaH/V82 nHUQ== 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 y78-v6si12336242pfj.159.2018.07.24.05.10.07; Tue, 24 Jul 2018 05:10:22 -0700 (PDT) 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 S2388325AbeGXNPa (ORCPT + 99 others); Tue, 24 Jul 2018 09:15:30 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:48717 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388236AbeGXNPa (ORCPT ); Tue, 24 Jul 2018 09:15:30 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id BF9272F6B8999; Tue, 24 Jul 2018 20:09:14 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.382.0; Tue, 24 Jul 2018 20:09:11 +0800 From: zhong jiang To: , CC: , Subject: [PATCH linux-next] gpio: fix meaningless return expression Date: Tue, 24 Jul 2018 19:57:43 +0800 Message-ID: <1532433463-42508-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse error: drivers/gpio/gpio-ath79.c:54:16: error: return expression in void function Signed-off-by: zhong jiang --- drivers/gpio/gpio-ath79.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-ath79.c b/drivers/gpio/gpio-ath79.c index 684e9d6..0a553d6 100644 --- a/drivers/gpio/gpio-ath79.c +++ b/drivers/gpio/gpio-ath79.c @@ -51,7 +51,7 @@ static u32 ath79_gpio_read(struct ath79_gpio_ctrl *ctrl, unsigned reg) static void ath79_gpio_write(struct ath79_gpio_ctrl *ctrl, unsigned reg, u32 val) { - return writel(val, ctrl->base + reg); + writel(val, ctrl->base + reg); } static bool ath79_gpio_update_bits( -- 1.7.12.4