Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp410217img; Fri, 22 Mar 2019 00:17:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzUSmXtDuFFzwEfzUlhO3yR9d4dWU+C8Mc5lyICwFSZe71q+EBtEgHIjzy+pMOpCUPltgS X-Received: by 2002:a17:902:b416:: with SMTP id x22mr8102101plr.285.1553239049055; Fri, 22 Mar 2019 00:17:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553239049; cv=none; d=google.com; s=arc-20160816; b=mdokimJ91+2B8eamIfhFt/5xeZdyaLakvbdk2joPZo3O1xt/FkEwyeZ/dew3BlWruH GkbEJhKyA7Fi9Enaka5oGA2jkbHwPwbiJEtHenTvddsBifCtpJ/boEm7ROT3nSyPdc1C qyBilQMfgwywMZDo6rPBLw9wxBIjvH0n4uEWlqcMT8f1si8SwDtFXnNndJ7FjsOP8BEW K/hP/NmSNOxYqdEdRRGbsieDl6QSLYOJMWPrgnSs0XzPDgY+vn0Bk8c3KjyXI29l/cpF jIdmagsUbsmjAvbE6KkeOYYXnEqkrU4mp3PKMQTRluhmJtL+HU6j6MSzrZJ1Nl1JQv88 Babg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=p0po/p/pvmP1Xi5KZPJVviWQilN5h+vm2TKBamL30kU=; b=uhIWtHXu+e8nF8M331uKwG1Ig2xDIEvLH6aVqiqpS10pmbkBX8jhXFgz0NA1PT3apW SkxVZpeKhsiEc98O1wCAXwy5oOpLtLK5P111zr/R1a8IlH0CTy7bYEsilOx0NAVVZxQs fai6INYH8bIEBGfyZlJfwGz7bAFe9/4/IH13KcSJ27RMtyuEwqTd4EXfBPNAXc+JzgZT LdgFclQsiyyn1l2oeiB+0sPNTrgRnSshxxJaLYgkKoLj7OAUN9uuiBaR26l6w33l+PQo yjvI3IJpy2o+bCGEigZJnGl7o2BcJptkKyQLTpH9Od3TRygLnIxi02kNa8pJdhgD2TkQ pCjA== 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 cb2si6809171plb.201.2019.03.22.00.17.13; Fri, 22 Mar 2019 00:17:29 -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 S1727893AbfCVHQY (ORCPT + 99 others); Fri, 22 Mar 2019 03:16:24 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:44919 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727574AbfCVHQX (ORCPT ); Fri, 22 Mar 2019 03:16:23 -0400 X-Originating-IP: 182.72.246.220 Received: from localhost (unknown [182.72.246.220]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 1E424C0005; Fri, 22 Mar 2019 07:16:20 +0000 (UTC) From: Alexandre Belloni To: linux-rtc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, patches@opensource.cirrus.com, Alexandre Belloni Subject: [PATCH 2/4] rtc: wm831x: remove unnecessary goto Date: Fri, 22 Mar 2019 08:16:09 +0100 Message-Id: <20190322071611.16407-2-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190322071611.16407-1-alexandre.belloni@bootlin.com> References: <20190322071611.16407-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no specific handling in the error path of wm831x_rtc_probe, remove the unnecessary goto and label. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-wm831x.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/rtc/rtc-wm831x.c b/drivers/rtc/rtc-wm831x.c index deaffe0eaf2f..1b0c3b3f63e8 100644 --- a/drivers/rtc/rtc-wm831x.c +++ b/drivers/rtc/rtc-wm831x.c @@ -429,7 +429,7 @@ static int wm831x_rtc_probe(struct platform_device *pdev) ret = wm831x_reg_read(wm831x, WM831X_RTC_CONTROL); if (ret < 0) { dev_err(&pdev->dev, "Failed to read RTC control: %d\n", ret); - goto err; + return ret; } if (ret & WM831X_RTC_ALM_ENA) wm831x_rtc->alarm_enabled = 1; @@ -459,9 +459,6 @@ static int wm831x_rtc_probe(struct platform_device *pdev) wm831x_rtc_add_randomness(wm831x); return 0; - -err: - return ret; } static const struct dev_pm_ops wm831x_rtc_pm_ops = { -- 2.20.1