[tip:,timers/core] clocksource/drivers/sun5i: Remove surplus dev_err() when using platform_get_irq()
Message ID | 169843099187.3135.3931806046322225231.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp802991vqb; Fri, 27 Oct 2023 11:27:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9KTxruaUIW0zMzffQsUt4vnx7tciZVIGvjM3I7ZhX1wLhw1GBxil7Ruxt/hMqCgDjZWy0 X-Received: by 2002:a25:ae54:0:b0:da0:81da:e4ed with SMTP id g20-20020a25ae54000000b00da081dae4edmr3045283ybe.40.1698431236849; Fri, 27 Oct 2023 11:27:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698431236; cv=none; d=google.com; s=arc-20160816; b=TImCpZ36M+rGSf/ySoxX1scc0vhmyBiOwa52dTPW4ql/6hgSsrBPq6l6Cdx/4j+6Ds wcLFSToe79uWjBEIqKMr0G5t6i6aZnMYjfXa+Qqxmvz9sFR43NnoMYAh/aUp9RfFGanc 5X8ocRdAvn+GLb0AwMDIqapVU/LeEs0nVojtNCSH2R/dl3p8iUi8X4dR4oxi+ccv2VH+ PAcTGIKesnKLt2D5oQxHRIngJLkF85+WhYKg98YNV16Ng/74DDHRSer/h/8BY8LcRJ7R va3Td/cpp1YkJkTR32PSH4F44rPUmUcg/agMBVEp3AVDDZDu9VstRAeb+lvsBbbHN/B/ 18DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=aR6R40gU+CjZs2UnXD/34D0hQZVTWiqk4inrpHJFb4g=; fh=BpsGdGKwKrNnrTum1efdfp1XfVIlgAi/SANXCC4YwcQ=; b=a8GY1vPBbtX3r3GH46DWMUhAxjsrTemMl5VEzOgpA03pKIG+1X6YdlYMy70QFHf0rv MSYmA6F6bP9CIUUCr5g5TsumPhe9qbmjfbUtn0c3ecAb+aQu9hEafDqY9K5LqffS/u31 akQR5VbYmY803TtIOJ1jbeF38xDHosf4bZLz3FSXUgcrJ1EkYMTaa8Mx2C7ph6wtFAZp jMlGh1SguajIhwQ3ChZr0OnEBJokCsb/fbF/iwf2Ct19ZX9TBMB8i2l1dGjs9n6Qi/XR 0cslTMcdaN27PUnQhiuTT7UF+OFaTrRviFs3+7Mkc5mEFSj0V+rmL2I+nsWcSu1H87Dq QC6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=f0PYOyIt; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id 7-20020a251907000000b00d9abff6f6fdsi3459311ybz.734.2023.10.27.11.27.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 11:27:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=f0PYOyIt; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 8BE3480A147F; Fri, 27 Oct 2023 11:26:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346572AbjJ0SZL (ORCPT <rfc822;a1648639935@gmail.com> + 25 others); Fri, 27 Oct 2023 14:25:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346312AbjJ0SYD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 27 Oct 2023 14:24:03 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D947C1FD7; Fri, 27 Oct 2023 11:23:14 -0700 (PDT) Date: Fri, 27 Oct 2023 18:23:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1698430992; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aR6R40gU+CjZs2UnXD/34D0hQZVTWiqk4inrpHJFb4g=; b=f0PYOyItFD7V+KIlKOMrlmi9LDhbvm5TAkY3LG2OY5kqzd0rtkNrvWIiCrxcVBN0OtGN49 ICV+T6JBo54gm1NxP2hfyiO2O8W2ZWgNOS2yvw3pEKuMFgnYdP+aMaXl7eGXh3qDk0Opxo 0V+vezN6hbu64tgeG/I5xeEAqCL5UQ9PguBMjkcuk3EulNEK2VRoJCdrQxAGvIxBXk1JQc VPf+WT652EuNPfbSUihyeG6ljxQzbxwfpCSkw/1oks4ASLf7XOH1X72EeC7j0xrXx7opcv 4UEGbczfLpro/vNO3d9lVvy98sW0q3KZBLxoRCsk3GQumdzZ16VN7MUohBTKrA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1698430992; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aR6R40gU+CjZs2UnXD/34D0hQZVTWiqk4inrpHJFb4g=; b=/T9BohRJJq+imsNg4tvWs9H2Mp4X5xPoODX8OudO9AEtylppI8XQI3dCHRvAxypu4wtxS6 F5f6BJ+FFIo64zBQ== From: "tip-bot2 for Yang Li" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] clocksource/drivers/sun5i: Remove surplus dev_err() when using platform_get_irq() Cc: Yang Li <yang.lee@linux.alibaba.com>, Jernej Skrabec <jernej.skrabec@gmail.com>, Daniel Lezcano <daniel.lezcano@linaro.org>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230831041414.66434-1-yang.lee@linux.alibaba.com> References: <20230831041414.66434-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Message-ID: <169843099187.3135.3931806046322225231.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 27 Oct 2023 11:26:47 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1775721540029605494 X-GMAIL-MSGID: 1780934232726574596 |
Series |
[tip:,timers/core] clocksource/drivers/sun5i: Remove surplus dev_err() when using platform_get_irq()
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Oct. 27, 2023, 6:23 p.m. UTC
The following commit has been merged into the timers/core branch of tip: Commit-ID: fd73c011a123a66d88998f356c920d33d87524cf Gitweb: https://git.kernel.org/tip/fd73c011a123a66d88998f356c920d33d87524cf Author: Yang Li <yang.lee@linux.alibaba.com> AuthorDate: Thu, 31 Aug 2023 12:14:14 +08:00 Committer: Daniel Lezcano <daniel.lezcano@linaro.org> CommitterDate: Wed, 11 Oct 2023 12:06:41 +02:00 clocksource/drivers/sun5i: Remove surplus dev_err() when using platform_get_irq() There is no need to call the dev_err() function directly to print a custom message when handling an error from either the platform_get_irq() or platform_get_irq_byname() functions as both are going to display an appropriate error message in case of a failure. ./drivers/clocksource/timer-sun5i.c:260:2-9: line 260 is redundant because platform_get_irq() already prints an error Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20230831041414.66434-1-yang.lee@linux.alibaba.com --- drivers/clocksource/timer-sun5i.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/clocksource/timer-sun5i.c b/drivers/clocksource/timer-sun5i.c index 69fee35..0d229a9 100644 --- a/drivers/clocksource/timer-sun5i.c +++ b/drivers/clocksource/timer-sun5i.c @@ -256,10 +256,8 @@ static int sun5i_timer_probe(struct platform_device *pdev) } irq = platform_get_irq(pdev, 0); - if (irq < 0) { - dev_err(dev, "Can't get IRQ\n"); + if (irq < 0) return irq; - } clk = devm_clk_get_enabled(dev, NULL); if (IS_ERR(clk)) {