Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1028370rwe; Wed, 24 Aug 2022 13:30:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR65YPGkjuQE3L+H2i+sGEF3o6xho4iYmYL4KEqeA3S99G4ujOuDtuQ5tUHOninha6RRXGz/ X-Received: by 2002:a05:6402:e01:b0:442:dd7e:f49d with SMTP id h1-20020a0564020e0100b00442dd7ef49dmr532647edh.355.1661373017255; Wed, 24 Aug 2022 13:30:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661373017; cv=none; d=google.com; s=arc-20160816; b=HWHKc1tV9IyJ9CqLzJJjqcf8R2kZQHHbXgRrcqAtAmZfK46AG929pIZ/paJg1yEhm0 /+y+B9mP4gnCc8mQwLKW72B4dj8L400aDzHg2HdGqqgVwLbboCSBBIHwQkO+ofBmH19+ YE0n6uqujIQJ2AAFMz8IMIYA9GyfAQ7fJs349ulXy11LHFRJWes4zkTS8NwSM87NiSjC +yaR5Ye4AN45XM7Pmqm3fkz8xEGh8JFB6PowKuXT2iCcxRBF91hiY6DiJ6wgUcAOfPwV BKdpn89/v4UthjfA6tCqA5XSGRwNVfqhH+QF/oRJq7WyOOIPbfFaqn1S38BQlKYRtcST EISw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=al64wbjpCDLAyiQ+uW6Vaq8vUU5UBUlSLnC1QG5oHJg=; b=NWwzBbZJoWSvtfU/06WbZ+5ysalEbJMZfnZZ64P+9Mr7ptC0bBOHvMMeq78pt0eXOE 5AvKSiMlA76lY0VOMvDu7u4KbyPqQmRGMFVuSNN4+Rq7Zppfx19hHmmc39aQ4+eb1l6z lGMa25WyWDwbA6G9T7DNaWhX6MZ+BjDbeUhKzNR/zEhoTMjdTBsdiaxlAD6XHegq9m2t 0Yd91d0MyeyhYkYVdqlyzynEu1ZdBu2KzCx24Lt2YX/24/I8Iuuf9gZi0225aicUuK7U buqExJ3C/xYDqqfcuCZGjjw0a/ESW9hRw0LGq0Lv+JK5ywzgzxT/yTWOH+JhjsikUEgd v9bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=g2Be9smp; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bt4-20020a0564020a4400b0043be542b956si4241893edb.262.2022.08.24.13.29.30; Wed, 24 Aug 2022 13:30:17 -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=@gmx.net header.s=badeba3b8450 header.b=g2Be9smp; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240023AbiHXT4f (ORCPT + 99 others); Wed, 24 Aug 2022 15:56:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234790AbiHXT4d (ORCPT ); Wed, 24 Aug 2022 15:56:33 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DD1279EDB; Wed, 24 Aug 2022 12:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1661370984; bh=g0hUjN3cAbARSzcql+JH8MKMfgvdS0bGxKwU4LFSaFY=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=g2Be9smpQen2fyJWj7264iksqJryLmLyJqgG7lW74Rs6xY21QcjcDTG+9shf88VTF 8Sjb7ldgjjtDbE3i3Ku6Rtv6jWnZuQIxCM3SKigCv3i3WHs9mKrJlhtOP55EH81F8T bzIsImioBJmxTSXH51Y53EW2JPJnqJHlXX4cmGC0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.173.19]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MQe5u-1olNYU1UWc-00NfEJ; Wed, 24 Aug 2022 21:56:24 +0200 Message-ID: Date: Wed, 24 Aug 2022 21:56:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] video: fbdev: omap: Remove unnecessary print function dev_err() Content-Language: en-US To: Jiapeng Chong Cc: linux-fbdev@vger.kernel.org, linux-omap@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Abaci Robot References: <20220824114455.5167-1-jiapeng.chong@linux.alibaba.com> From: Helge Deller In-Reply-To: <20220824114455.5167-1-jiapeng.chong@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:QE/g5FKVqH/BMcj4p2uGLEVLJe07d8CPvlc2J2oLPTXty9ncQ5H /ZPNU7F171RI5/CWxYTZX3phnBs7+zNnMbiiAxYBPbcyIa2iwOo+at/4Io1xPsnxSp+aYEN pIN3NHdVCS5xwnFu8pSYwpyoUqp7qSPzdcBVl/cMq5y7S7awpt1abiQLwhdmD8/RDB/b307 /QOvs9ZKgKOiSfCRwU0rQ== X-UI-Out-Filterresults: notj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Ok+ki+HPDnpW3wDc2pAiPzQGg73Ji+AgM8NO2ZIXlUcXNNt0bzvG0/bAOHLw53tPR45s+r vKz5erwtkfqzCJgw5G7+MLUG4tOl5OlqKAhPmVhPZPfjmHpNl57vIVX6g== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 8/24/22 13:44, Jiapeng Chong wrote: > The print function dev_err() is redundant because platform_get_irq() > already prints an error. > > ./drivers/video/fbdev/omap/omapfb_main.c:1653:2-9: line 1653 is redundan= t because platform_get_irq() already prints an error. > ./drivers/video/fbdev/omap/omapfb_main.c:1646:2-9: line 1646 is redundan= t because platform_get_irq() already prints an error. > > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3D1957 > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong applied. Thanks! Helge > --- > drivers/video/fbdev/omap/omapfb_main.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/video/fbdev/omap/omapfb_main.c b/drivers/video/fbde= v/omap/omapfb_main.c > index fbb3af883d4d..17cda5765683 100644 > --- a/drivers/video/fbdev/omap/omapfb_main.c > +++ b/drivers/video/fbdev/omap/omapfb_main.c > @@ -1643,14 +1643,12 @@ static int omapfb_do_probe(struct platform_devic= e *pdev, > } > fbdev->int_irq =3D platform_get_irq(pdev, 0); > if (fbdev->int_irq < 0) { > - dev_err(&pdev->dev, "unable to get irq\n"); > r =3D ENXIO; > goto cleanup; > } > > fbdev->ext_irq =3D platform_get_irq(pdev, 1); > if (fbdev->ext_irq < 0) { > - dev_err(&pdev->dev, "unable to get irq\n"); > r =3D ENXIO; > goto cleanup; > }