Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp156646rwb; Wed, 30 Nov 2022 23:58:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf4luAdJoq9Eql5ENgF4vyDmBuEGf+n02bplcBmEivdFUz3GTI8Gg0DtVMmfGNTIjRi3ALo1 X-Received: by 2002:a17:902:6b07:b0:189:93a5:bcc6 with SMTP id o7-20020a1709026b0700b0018993a5bcc6mr16407830plk.156.1669881539066; Wed, 30 Nov 2022 23:58:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669881539; cv=none; d=google.com; s=arc-20160816; b=qbt4LVRW4Hx0cH/yHiBuyzDic8Gq6Eblra7onbM2F+MvQNlSD1IrVkxzTmGJCIU+51 2wzhFT/97K3hp+2Ywn8rg1ar6bonNVGPIHjBoH2fv6ealCBW8PwugG45Xu4CrBiPSPnP hpq9VTyx2+SIyE+/Zc6vN+nCWz0LHIgdL7oanDgvbExqHNf3zuKdIQDeBhAYN8FnNs2g jGLHAkJMvBGWumvSHufdiNyIZTvHIqk+nuHGM/8KIFZ7WcYv89ZeHnasZMMguGQ9j9Ev TmwqzY41QpHoLMsKxDu/GurjNOrDXCsv0zzzMz/ZVY55iPBoJGGpGc4uFIVtk8wVdknj VJNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=YOq5LPeVNc0dk6OEmkonjgYQl1nXiUnm1Hg3pHG4qec=; b=T/VBNuRVNbDest4Sh6G8HVAVgLCNlGKmxk2FfM8JxoGzhNLNN2j2As3tS8RbYcLcAp nKLebvCKda/dGiCikqbj42x2N/wnESepvg8sZZKFSb2mCUTFJDFinkEAue0NKiIszMNY +WvtFzhSCmsX9/y9IXy6YfdRSEiTVcQm73p7pZhhwChrLxbd5HQda1WvJSj2MXqpuKsn 4an2Z9ZhzgN6/YNl41WIeKXggkr6cCwiNEkgax/FCyiP0Y+oD/eykwkAwnOrukOUInho PcEXfSKDrU1eR3hlqTc4QdMrZNqTls5VoqSU7cJMY4mghKdoPGF5JQ8MzA3rl7O2BIxv qeZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lj9-20020a17090b344900b002135e1f5a7bsi6498454pjb.155.2022.11.30.23.58.48; Wed, 30 Nov 2022 23:58:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229755AbiLAGg0 (ORCPT + 83 others); Thu, 1 Dec 2022 01:36:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbiLAGgZ (ORCPT ); Thu, 1 Dec 2022 01:36:25 -0500 X-Greylist: delayed 309 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 30 Nov 2022 22:36:23 PST Received: from shell.v3.sk (mail.v3.sk [167.172.186.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0083386598 for ; Wed, 30 Nov 2022 22:36:23 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 8215DDD02B; Thu, 1 Dec 2022 06:18:41 +0000 (UTC) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id tGMXzyLGw1aJ; Thu, 1 Dec 2022 06:18:40 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id ABBABDD17D; Thu, 1 Dec 2022 06:18:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at zimbra.v3.sk Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id WhquvPf26IpU; Thu, 1 Dec 2022 06:18:40 +0000 (UTC) Received: from localhost (unknown [109.183.109.54]) by zimbra.v3.sk (Postfix) with ESMTPSA id 2CC03DCFC6; Thu, 1 Dec 2022 06:18:40 +0000 (UTC) Date: Thu, 1 Dec 2022 07:31:10 +0100 From: Lubomir Rintel To: zhang.songyi@zte.com.cn Cc: arnd@arndb.de, robert.jarzmik@free.fr, linux-kernel@vger.kernel.org Subject: Re: [PATCH linux-next] pxa: Remove dev_err() after platform_get_irq() Message-ID: References: <202211301556064978448@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202211301556064978448@zte.com.cn> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 30, 2022 at 03:56:06PM +0800, zhang.songyi@zte.com.cn wrote: > From: zhang songyi > > 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/soc/pxa/ssp.c:150:2-9: line 150 is redundant because > platform_get_irq() already prints an error > > Signed-off-by: zhang songyi Reviewed-by: Lubomir Rintel > --- > drivers/soc/pxa/ssp.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/soc/pxa/ssp.c b/drivers/soc/pxa/ssp.c > index 93449fb3519e..7085901b4e4b 100644 > --- a/drivers/soc/pxa/ssp.c > +++ b/drivers/soc/pxa/ssp.c > @@ -147,7 +147,6 @@ static int pxa_ssp_probe(struct platform_device *pdev) > > ssp->irq = platform_get_irq(pdev, 0); > if (ssp->irq < 0) { > - dev_err(dev, "no IRQ resource defined\n"); > return -ENODEV; > } > > -- > 2.15.2