Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3707419rwj; Tue, 20 Dec 2022 00:20:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf474zT6tO/9ihLO3Y37VCTuMy5vXSUYaruK/V15+c+lJFtj9ZKYdvaaSMJXnCgwLPMOs2lA X-Received: by 2002:a17:902:e811:b0:189:d8fb:152d with SMTP id u17-20020a170902e81100b00189d8fb152dmr67576507plg.25.1671524446620; Tue, 20 Dec 2022 00:20:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671524446; cv=none; d=google.com; s=arc-20160816; b=0CorBSKXl6y0N9PU5/9NVHKKhsQv6OtdTnInfwssDpszd8EZLXQbM437XFmjThxSmB qWY+h9C8mSg1NQsVPiqS/ufN+EmssHSkRg4ya7PhdN4u2kgxsgpjfeRNJ+lqm3gPij8b pXQdzjFYgJuGTpzfjy5Iu4kIJp9kKBNHFGEh/qNwsszeFmQS3ofVcnrkPie55uMUo8MW vJmDKJTBNpp2/kkRmfpRUToqUMs+rZ7Ht0/vGxRwz8bXC9Hi6ybjQgp0UoaAF+mR3RhW pST9fV5dKoSDYPLFLBGQEP/xQQIe18ATkYmrFTiSIyR04G4uSGVX6IAv8rWwHUGaqBE6 GR9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:references :in-reply-to:subject:cc:to:from:date:mime-version:dkim-signature; bh=/z0MB0ZIFP6aeujFH0p44anRHbnTFFLRrIGfOtCkCsA=; b=iC29z5JQmVP31xdpruWITQQv+nHJD6ad6GK5ibBPn1Y57qCBsT1ZcRfY9EWx15jlW4 ITacnle7bUtEodGzJrlPkoNhnfdGTFA9lP2vDuUlFZnkbikwmfFej1L0Sbl+phD/q4L9 ukvFdgfICxj0/IZCrrbkCMZ8ab0OUFhO72eSDZaMYF4vIUGp+JzIKrWmTLQ52PgHQQCM P5MyqEyzvReRvhLkQdW/bq5w80FZsDaBkthgFpxuAEBDrAiUzILRyS9voXQwC5D/sxxc Le1j9Q08zd6AohvlJPXxhRq7Ag7QlUDLl+TVIANCiv1Y5z9PPNpdor0scGBxocppDpTv +PtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=wgXLk1fP; 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 u5-20020a170902e80500b001867db1d29csi14033794plg.60.2022.12.20.00.20.37; Tue, 20 Dec 2022 00:20:46 -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; dkim=pass header.i=@agner.ch header.s=dkim header.b=wgXLk1fP; 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 S233234AbiLTHlp (ORCPT + 71 others); Tue, 20 Dec 2022 02:41:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232678AbiLTHln (ORCPT ); Tue, 20 Dec 2022 02:41:43 -0500 X-Greylist: delayed 579 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 19 Dec 2022 23:41:42 PST Received: from mail.kmu-office.ch (mail.kmu-office.ch [IPv6:2a02:418:6a02::a2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64D22F72 for ; Mon, 19 Dec 2022 23:41:42 -0800 (PST) Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id AEEBC5C03AF; Tue, 20 Dec 2022 08:32:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1671521520; h=from:from: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=/z0MB0ZIFP6aeujFH0p44anRHbnTFFLRrIGfOtCkCsA=; b=wgXLk1fPwI5tusswIE/FVXABCqdMsTd4Ewelb8wZZfeqOiyccCdgwwMycuAL9xayASQ5OP NPl6uRIVPAqWR3ncZNOHxYkBz9ZHZQJKSUf2V1sxdsTKuqrAAmgiWFIEth433dZFi6IG9F 84bJ8jwNDilNZ+t8o29aIl5LA+nVjVU= MIME-Version: 1.0 Date: Tue, 20 Dec 2022 08:32:00 +0100 From: Stefan Agner To: Deepak R Varma Cc: Alison Wang , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Saurabh Singh Sengar , Praveen Kumar Subject: Re: [PATCH] drm/fsl-dcu: Remove redundant error logging In-Reply-To: References: Message-ID: X-Sender: stefan@agner.ch Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 2022-12-11 11:27, Deepak R Varma wrote: > A call to platform_get_irq() already prints an error on failure within > its own implementation. So printing another error based on its return > value in the caller is redundant and should be removed. The clean up > also makes if condition block braces unnecessary. Remove that as well. > > Issue identified using platform_get_irq.cocci coccicheck script. > > Signed-off-by: Deepak R Varma Reviewed-by: Stefan Agner -- Stefan > --- > drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c > b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c > index 8579c7629f5e..1ba7d95e1956 100644 > --- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c > +++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c > @@ -272,10 +272,8 @@ static int fsl_dcu_drm_probe(struct platform_device *pdev) > } > > fsl_dev->irq = platform_get_irq(pdev, 0); > - if (fsl_dev->irq < 0) { > - dev_err(dev, "failed to get irq\n"); > + if (fsl_dev->irq < 0) > return fsl_dev->irq; > - } > > fsl_dev->regmap = devm_regmap_init_mmio(dev, base, > &fsl_dcu_regmap_config); > -- > 2.34.1