Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp530184iog; Fri, 24 Jun 2022 08:40:43 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uaF9X37PlldAofFvxF0wh5t1OxhUr49eKnA34uMxrxGOqpERjyiYiMFS/fGfN9d0dAvybm X-Received: by 2002:a17:906:2088:b0:711:f512:837a with SMTP id 8-20020a170906208800b00711f512837amr13852377ejq.113.1656085243473; Fri, 24 Jun 2022 08:40:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656085243; cv=none; d=google.com; s=arc-20160816; b=Qq1eas3jvPcZ2rg4dvbeHA5+XPCxK1N0b4vqopu6nhyboy+HojYJPIM1rWpj2irjXo 3x99Xw1p9NyFFvKbWlAY2sBVGEbKSfszXzuhtIXRcUw62F3sO9kYsZ8nsu45dnuWIHnl cu+QX35t30ZxqqKaKGtdbsScf6lHz3IMO8AP/C0aghBDuCT+kfdZrQ0zvuF6wX8hEyqU 0VKQ8L8Ez6iRWboHqHYz5/YBS9x3+D4RJU8ttof4bMTkkfN44Su0LsmQ5qm7O781JTaP jfH4+0Fdg2FlC5tAUdv/5eYmR62zMbuVbT8ACOlZl5u0BCidrekQT/VWcmbeUgLzhgR+ 6LPw== 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:dkim-signature; bh=2qXzzJoUbs4d2QN18DeeUOD79uKu2pCH/VKOYe0ryJU=; b=Vjp3qO9lR9hNsm6eC9OtvyjG89YIL8Uvd+bSfvcnMpUulydGTRxHOFkQr0xBg4qb+x lBYGENHooTgZl4wFEheDhkl2WQ8muhTDPwZm+jctWrAyD1UZYLF/xkVC76QBzHTzgn78 iyIcVNq0FRpT6NQZDNSsZ9VlLXfY8tQPlMZ7bvxOtwv/aHgWJaGYDsKXLYy3DHmLntZo BYf81GyrlafN3SaMP6uT0W3PWKAmGQmgCVz6lXpLwm2AIswrzVKX2Io/WU0QQ6kCBaqF Krp8mD8UQ9zcNuz/Pu5d8E1RkMRrCgUuLxgX79VGhSULkQN0ptbFsLDWyfVhlj30MnTA vf2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=AdugIn5I; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb8-20020a170907960800b00726348d8907si1786676ejc.493.2022.06.24.08.40.17; Fri, 24 Jun 2022 08:40:43 -0700 (PDT) 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=@bootlin.com header.s=gm1 header.b=AdugIn5I; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232457AbiFXPBu (ORCPT + 99 others); Fri, 24 Jun 2022 11:01:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232852AbiFXPBg (ORCPT ); Fri, 24 Jun 2022 11:01:36 -0400 Received: from relay12.mail.gandi.net (relay12.mail.gandi.net [IPv6:2001:4b98:dc4:8::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 734EA7E037 for ; Fri, 24 Jun 2022 08:00:58 -0700 (PDT) Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 074A720000F; Fri, 24 Jun 2022 15:00:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1656082855; 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: in-reply-to:in-reply-to:references:references; bh=2qXzzJoUbs4d2QN18DeeUOD79uKu2pCH/VKOYe0ryJU=; b=AdugIn5IrOuegRe1MgJXvlpSkfmQeoFzYPsWm/Es3Pas0v/xU3CPJ6FNRpYajhiCbnbNrc jBAYXShmAT94eI3n0JnS9nUCidQbFzj9MpmasgvEoZENyVkJmdP/Ruqwf9BYzy2A3TWAzc c8gEzP6wGu9vTzov5/vxd3R0yf6l6eYNUdvI2iB9eX4ehz3JI87eSavJY/I+Kta1n6yisO Y1/jovWvDOJuGY1lpPVBZkaAni/6rOUpknlQiTBEfZNI+fjmVM+Xnp9E/29TsPRdRaUxli aQGB5L5HL5HCH58CziTaZ63MeTIaekGkqX9g4pJvjJ0LqZBi0Og8sm/ugpD58A== Date: Fri, 24 Jun 2022 17:00:54 +0200 From: Paul Kocialkowski To: Yang Li Cc: airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Abaci Robot Subject: Re: [PATCH -next] drm: Remove unnecessary print function dev_err() Message-ID: References: <20220613012658.85814-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="veaIlB3NsqQJBjp+" Content-Disposition: inline In-Reply-To: <20220613012658.85814-1-yang.lee@linux.alibaba.com> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 --veaIlB3NsqQJBjp+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Yang, On Mon 13 Jun 22, 09:26, Yang Li wrote: > The print function dev_err() is redundant because platform_get_irq() > already prints an error. >=20 > Eliminate the follow coccicheck warning: > ./drivers/gpu/drm/logicvc/logicvc_drm.c:352:2-9: line 352 is redundant > because platform_get_irq() already prints an error >=20 > Reported-by: Abaci Robot > Signed-off-by: Yang Li Thanks for the patch! Acked-by: Paul Kocialkowski Paul > --- > drivers/gpu/drm/logicvc/logicvc_drm.c | 1 - > 1 file changed, 1 deletion(-) >=20 > diff --git a/drivers/gpu/drm/logicvc/logicvc_drm.c b/drivers/gpu/drm/logi= cvc/logicvc_drm.c > index df1805cf0f95..437b3011ae1e 100644 > --- a/drivers/gpu/drm/logicvc/logicvc_drm.c > +++ b/drivers/gpu/drm/logicvc/logicvc_drm.c > @@ -349,7 +349,6 @@ static int logicvc_drm_probe(struct platform_device *= pdev) > =20 > irq =3D platform_get_irq(pdev, 0); > if (irq < 0) { > - dev_err(dev, "Failed to get IRQ\n"); > ret =3D -ENODEV; > goto error_reserved_mem; > } > --=20 > 2.20.1.7.g153144c >=20 --=20 Paul Kocialkowski, Bootlin Embedded Linux and kernel engineering https://bootlin.com --veaIlB3NsqQJBjp+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEJZpWjZeIetVBefti3cLmz3+fv9EFAmK10aYACgkQ3cLmz3+f v9EGeQf/Q01Lx/F9D+C2pQeGKz3ffuzTDhSn3Tm7+EUUsYblieed+d8NDOXdDSWF dkkdvlubJP2VOLFRioFp6JbCmPW5ul7CdTE8sYtefj8Kdt/ghau8j5KI6kN4CM+L SvCfuS8dc7Av3mfSWW/7vURJO3oLs1MnAEKZAdK+yYhBRoih8200mo8AC0leuVz/ 5f/zmyQ5C2COwQ/vkG8YMoGpDJIk65jvxlBqbRv80bfLCoNY4gLEG4m/3TpSZNk9 FtXolEz03RckdXsuT3tqXUmHQ7WTWgjfk7v+xuKJ83nj10Xgw9ImGoyVjBVkef3O lyYYhtTL4IkrQ86COfhQijTeByJe3A== =7pE3 -----END PGP SIGNATURE----- --veaIlB3NsqQJBjp+--