Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2795532pxb; Thu, 3 Feb 2022 14:46:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyeNpZ0W1Bs89PL8vjbV67TfviuaNpiFgiben1qccWroLBq7IKyy33QKICAjGPQ3eCEh1KM X-Received: by 2002:a17:903:1ce:: with SMTP id e14mr116253plh.138.1643928384419; Thu, 03 Feb 2022 14:46:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643928384; cv=none; d=google.com; s=arc-20160816; b=j9WIh1MuX25+iZhgsHbw8gVjoudK2ZP80gBaZ1QjEn8IAUFJ1YM6XZ99/0cBgF0Er4 OQXafJ3fbk6NTFEJoGMegiKn59GJFzLlpGey5xZr8vOadTbbqmFMSQfOMrCb+Dc5DysG ucufgxKHu9t5h2MOoze9DOASjPz9seeRmGiQuPljeuu5s6dIhPBzGDO0P2M8ZKq/NSZ9 gR/Xu9dRwMhKH+GByHDWqyVh44910ieNrydPLPRzZc96c8bcu/cv57/3RAHrQxvMXBNT 7K/s8EbDXcXP63hdm/LW7/apcyuQ1sQaRm2z/DWRH6SX0F27ByPOrgMHYUQ1n3Uoa4y4 yi9g== 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=mS/iy3YhA15jXtTmu3VDioCv72NZjnh2jRre3rVEx0k=; b=tH7WqmAWJkNjtsPfJ0rBPRHZiQ4OlShAmDjlsJwSuuS4PxZF6vNoRM9wpg0ARUTjJQ VtPNWfFq+wrp+dUzvORGWKctqtbRP7b1roMMuJWykQcTg/s+mMyugooK0290Jj1eAkz9 /WE0Sx/D00vRoxhzlQ0Y+2zk+xGdbeGIS/v65UroqUbSXMUTBErQ4nXwujvY7K5Ek7gO wOayQYXNIWdZk1gY235tT6lEZG/vTaSW4PhdYpLzEPI/Jpi+qdZAs4A4jVC+56lngMVg SARRwDt7WPA0HSEwp9u+y3VVA5blfBsllWAIrMo1dmqvzX/D/FYwy7rYi4lTfpD9xwQT Qrfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Tf6tuYmM; 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 f20si148949pjq.121.2022.02.03.14.46.11; Thu, 03 Feb 2022 14:46:24 -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=@gmx.net header.s=badeba3b8450 header.b=Tf6tuYmM; 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 S231865AbiBATr4 (ORCPT + 99 others); Tue, 1 Feb 2022 14:47:56 -0500 Received: from mout.gmx.net ([212.227.17.21]:46979 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229779AbiBATrz (ORCPT ); Tue, 1 Feb 2022 14:47:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643744868; bh=6dETGNc8tOx9qyOBIiW32FnU/euninP5MXdRcl9TR3k=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=Tf6tuYmMDdGmNXQS+QUp3oh/2jHb9mbycZ5gKz3zvhkhL+z2v0fL2gQ8uGmKXOsTM FOCGtiA1RITXgMddu8zqQjxjozh/LndLHh7GHJe+qsaVpzajDegmwCoCXpu2+Dd4+e S8ZMCarmt7TGDIC920bMhn3tAEpZHd3dcZzkFvi0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.146.124]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MuDXp-1mMjW50K69-00ubTt; Tue, 01 Feb 2022 20:47:48 +0100 Message-ID: Date: Tue, 1 Feb 2022 20:47:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH -next 1/2 v2] video: fbdev: pxa168fb: Remove unnecessary print function dev_err() Content-Language: en-US To: Yang Li Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Abaci Robot References: <20220201123202.95055-1-yang.lee@linux.alibaba.com> From: Helge Deller In-Reply-To: <20220201123202.95055-1-yang.lee@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:P0O8w4mueeB2YQ2V6D1Q5t5hIBTe2tcDQlCSuH/dkYTXWINI0bm 372+pusaAjBH22M5izyEvjE73Pgbj+Jvhg4BNbBgiGOansG79ouhKLYb5TEphaiX88Nhvlh RknvaW6xUoLdCz6V9YJBNKqw5MDE3YjQD/Rc7FO1DZO8wvsrdiOTFlQKrNaHU1m/pOY334Q 5PDTPNyGkv9NXyHFQzaow== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:eN6+SjDvE+Y=:RX/19qHPU7/f8s0hrRFvZU 9yct+1Hdk8A8yxRtk/aopG7aFPKgajm/ELRu+MjQo7K5b58b14mwrN3BMJuHdvM5hqq6yNpwp wIL6IdbyJHhMmzCoPXvtkBVJS/eQjBvRLO7TsZOJbw60wHVDCsUHqeii3dmyiaxEP3qWdyo9D k6K1zIqmA3IA6nCe7QyNisTbWnjUeb7JKFTZQQqN6PtIN7nfVCTGtrlKr3jD/LhcMJZj8/toS kr03U+pQhLykIpNcGKWFcXJ7r7hc9IQ8smQsOYbzLpPLPKZv3/eb9HC7T1GjcVByf54SuUdho P9KgbxCNRZp2WiGQaVOJWQmTz3H7bVkvjVx4VJQ5FJf3ySzVC+HVd26iunmjfIE7NpEAGdOBw yM8tISv5Ms7D6HXQC8qm2vccV5uJ+nSADABqa48feHBGVurSsZkQutUqMB9fHgayQAVT2mSGJ d9FJeF6X/IWIQLzzTSCdD43DT0BLIYQSJr3NdFiWRJrMVAHrp4A+zXkhpJh2cZNhko16MtiTU d4DkwxQkuufFto9+1IL9XiP6H9hVB/pFQilJy2TkBPq/wkzCt+rhQF4rszkFC/E0eelIQlDQw L3CoWDUXaK5ltKxRB++iYUBp5d+0IG6fyostbsqLhonlLNwCy5Kqhecu95gopGzfEOT0pO+jA WOO4QuL9ljKmRj3xZpj76QEnENWMhdbecTLylPS3VrlA4jIYHdi8qygX165WXdEe/J9cZk7M1 jyk0oquAD3M3iSAjNfW2Lz2LhkLfZSJXXBJhMgovb5HGlVltn/J4yW2N1e8S5AvxdqZtUz3JF A1YgSdEuD6r9T5jLU8GG3jZrmtZ7Jl16eNTWoAy7zjqy0UzqEVcvBOCfE8Kicy36lZas4w3Rb NwJ67kRC3HR9ZW67Bks8Vf0qjs0kVJt3e7ERcxrsy+I+RbTgUkoVNY4Vs102S0UHXSAHvU+la ItTTgbJhQ+sp9sFS0S5rByLwhpocEP7RXC0iZamnZPr6JXd5Jd1vVgalEpCub5bRz8Bg61n+0 tH/L3gt4hJ7EDC1J+XtBosjdh+A5tnbG2bzS06jkAf4wQeES8dmqTAAHPBXBkX9Hwis8MGhwY IiM/6HC05agMBM= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/1/22 13:32, Yang Li wrote: > The print function dev_err() is redundant because platform_get_irq() > already prints an error. > > Eliminate the follow coccicheck warning: > ./drivers/video/fbdev/pxa168fb.c:621:2-9: line 621 is redundant because > platform_get_irq() already prints an error > > Reported-by: Abaci Robot > Signed-off-by: Yang Li > --- > > -Change in v2: > drop the surrounding braces Both applied to fbdev-next tree. Thanks, Helge > > drivers/video/fbdev/pxa168fb.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/video/fbdev/pxa168fb.c b/drivers/video/fbdev/pxa168= fb.c > index c25739f6934d..e943300d23e8 100644 > --- a/drivers/video/fbdev/pxa168fb.c > +++ b/drivers/video/fbdev/pxa168fb.c > @@ -617,10 +617,8 @@ static int pxa168fb_probe(struct platform_device *p= dev) > } > > irq =3D platform_get_irq(pdev, 0); > - if (irq < 0) { > - dev_err(&pdev->dev, "no IRQ defined\n"); > + if (irq < 0) > return -ENOENT; > - } > > info =3D framebuffer_alloc(sizeof(struct pxa168fb_info), &pdev->dev); > if (info =3D=3D NULL) { >