Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2194031ybb; Mon, 30 Mar 2020 01:10:07 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtVKdJffAu1lMreaJUzuYyRCkyjtWcWoT52AF/zXbP504ahI/rjLpsxfsbbY2edKvzTqC4L X-Received: by 2002:aca:49d8:: with SMTP id w207mr6945808oia.85.1585555806889; Mon, 30 Mar 2020 01:10:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585555806; cv=none; d=google.com; s=arc-20160816; b=sXbAZNqLnX3plmmb94hkGXNFNk3oW6e15Pn0UohIlxD2ja/Ezj63z6jfSGkT/iHwYQ VvThGJzbPRQrYyuAB8nuEoMcr5eNKYLhmLrYxpNv00STdLqiIn8DrP/SoKrdOjTPi3km gJkwd71x37BhIPhQQ0iGVMsSNaz7GRcS1nBRNSBhaWWu/qlPbgPj8Bs8s0npNCY/Nrlh qsAE5tLBZJAXdIPmOT5QSPLNSsaAJDdwdOFpDZgJ7cu82HX6+mmFLjg2KsYjzltXOCO8 Q+JXoRzqmGGrH4P69eTwS3w1zYCX2WUkIIOHBOLeH3y6lhFCJRGsYwm29knqSvUzwwSz 4wgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=Ucrmozt3eqsaANdzZDtc45KGfqsLBSxMtixi00FSYVA=; b=KnoqlEc6zCs+QnTm6UO0ayRiSpf1U9uYRgmuewhdTkNa8t5lonsSxoCmoI6gE1wMME 3t277XGhEMsKlarz1C4E2iawPazicI3JNs/ljMwpdwgFWWTvw9XQTuINDZDYC5B0m5Wm anXq9NZMWhHKwCiehz8r/PKPM1K3t3CIZ2lJUlgZu6ohbok6cCbkhGFPqCMOAcv/VeZt CZue+eyTTVtlAWGNDUuWjbtNR16XG7iYsS4Sy2itAmHLAwxnM8K6EoTmY3A8N+KNnwya pxS+cqhFvFiutf60SmIMg8udU1Gow0+QfOex1b5BdtGQOEq0/lCozGSGfO4T5OLZ0Q5f WOkQ== 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 l7si5907199otj.49.2020.03.30.01.09.53; Mon, 30 Mar 2020 01:10:06 -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 S1729615AbgC3IHd (ORCPT + 99 others); Mon, 30 Mar 2020 04:07:33 -0400 Received: from cmccmta3.chinamobile.com ([221.176.66.81]:10545 "EHLO cmccmta3.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729546AbgC3IHc (ORCPT ); Mon, 30 Mar 2020 04:07:32 -0400 X-Greylist: delayed 546 seconds by postgrey-1.27 at vger.kernel.org; Mon, 30 Mar 2020 04:07:31 EDT Received: from spf.mail.chinamobile.com (unknown[172.16.121.17]) by rmmx-syy-dmz-app12-12012 (RichMail) with SMTP id 2eec5e81a66c798-0a7d3; Mon, 30 Mar 2020 15:57:32 +0800 (CST) X-RM-TRANSID: 2eec5e81a66c798-0a7d3 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.105.0.243]) by rmsmtp-syy-appsvr09-12009 (RichMail) with SMTP id 2ee95e81a66be31-380c6; Mon, 30 Mar 2020 15:57:32 +0800 (CST) X-RM-TRANSID: 2ee95e81a66be31-380c6 From: Ding Xiang To: linus.walleij@linaro.org Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: nomadik:remove unneeded variable Date: Mon, 30 Mar 2020 15:56:26 +0800 Message-Id: <1585554986-26521-1-git-send-email-dingxiang@cmss.chinamobile.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ret is unneeded, just return 0. Signed-off-by: Ding Xiang --- drivers/pinctrl/nomadik/pinctrl-nomadik.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pinctrl/nomadik/pinctrl-nomadik.c b/drivers/pinctrl/nomadik/pinctrl-nomadik.c index 95f864d..4c56483 100644 --- a/drivers/pinctrl/nomadik/pinctrl-nomadik.c +++ b/drivers/pinctrl/nomadik/pinctrl-nomadik.c @@ -1340,8 +1340,6 @@ struct nmk_cfg_param { static int nmk_dt_pin_config(int index, int val, unsigned long *config) { - int ret = 0; - if (nmk_cfg_params[index].choice == NULL) *config = nmk_cfg_params[index].config; else { @@ -1351,7 +1349,7 @@ static int nmk_dt_pin_config(int index, int val, unsigned long *config) nmk_cfg_params[index].choice[val]; } } - return ret; + return 0; } static const char *nmk_find_pin_name(struct pinctrl_dev *pctldev, const char *pin_name) -- 1.9.1