Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3478250pxb; Fri, 4 Feb 2022 09:19:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/FxQSmCFl4HlzqU71cqEIzA3/gGB6CnpLG73++k2ljr+xQyUlu3GTNddP1vYVLGnGBLzl X-Received: by 2002:aa7:cdd9:: with SMTP id h25mr103478edw.95.1643995160277; Fri, 04 Feb 2022 09:19:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643995160; cv=none; d=google.com; s=arc-20160816; b=DgSmc6sY2qbqf3yD1ku9MR9Bpf5yZ/QI4v8LZh5wrHHIwTY4djrtHFGEeoLHsmjjZl ZeruPXWr6JU/PAWBXoqMWhq3NRnc6bK6BDENesvUO2BYh+77uXnNywda+BGptrctMRdn GrcyjXhEoghGYpQZAkgX7aStuFRyUORRzSFRaz12arh8zTb6cDbiFzyvngD0kIhnaRTr UU2FRlPtaLAyQxHYw0WQteFbEf/DCMkjFLpbkW4z3Ky4BWXSkZFPXXFk6sTmK2rrR8TE KdaOr7NpaG6mkGoxFKED65ind7TWzSHImAz3f2f8Sg3OuMk71co8mBrKsxNrY4euiA/d 3y1Q== 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=7nZHvQ4KEDf8fr7lU7cbqqCpH/VVcbqN7JmLrtNUgQk=; b=QsnjGlk95aT3lMFmdWPtpFxkQTf5x9QT2xCh74CI5Xw1E5Ay5ivIgbZYWoTKRPI8W8 zWzPrQG2jXzCx+ce28eorOatYwpw0v0+ykYezX7c+hL0bMegTs/I6mZGR9BDBdrjBnI3 rul3IUoOs2Wcmn1eXXNCz1vhrxj7l0h5PKk716L0KdPH7qzT3bb1vdBvAMgbJTZtBTNP 3r9Hzw+nsZykf6qBrRt7U/LDqD1QkDyKZTSQWxBQgrWqvFKr8lZ+Q8GMayszLmTVed3R 6a0GRhpsLatzQ97W1G82fJ9rTYc7VQ4ubDm9J4xwMrS38WmBqZkZ19sAM2Ejl1vBlA8b yw+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=aQ7cVv7O; 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 mp26si1589375ejc.326.2022.02.04.09.18.52; Fri, 04 Feb 2022 09:19:20 -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=aQ7cVv7O; 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 S237300AbiBALek (ORCPT + 99 others); Tue, 1 Feb 2022 06:34:40 -0500 Received: from mout.gmx.net ([212.227.17.22]:50575 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233560AbiBALej (ORCPT ); Tue, 1 Feb 2022 06:34:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643715270; bh=4T9RDTLAr0KcpEvaIH55Bk1wM7UlBol83f6Gumr1oQc=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=aQ7cVv7O6Bql8HHixoJaMPIfib4BrLNPDMLB3e5mLTZQsZRHvtipBrHszj430jBzo uofR8PJosaIiI4AikVkLooCk07g0A097724LAXpLtbkxNvlHROvfhqDTFCcp0+9AY5 EPKGVkAUy3JI6QQFnjcMWEDNlI9cmsTKuHjkdIBw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.146.124]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MZCfJ-1mjsIB2eK9-00V5UA; Tue, 01 Feb 2022 12:34:30 +0100 Message-ID: Date: Tue, 1 Feb 2022 12:34:28 +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] 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: <20220201062633.102519-1-yang.lee@linux.alibaba.com> From: Helge Deller In-Reply-To: <20220201062633.102519-1-yang.lee@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:7TIhoWnCFwcYD+6lyAPYwUlkSAKdBfZg9gO2QgIrAzZn4YrMuQi 2Mz6h3koks5vciCXOer/qt4qcsd51ayCFRB3osBzV+AZzEDi2v1X+GTKDzlkhzsnDJkwqmx CS9LXZUZuuRffPhp0hD4km8xBaRpb0QDCvxFCECMYIOf742PhGyzvDgP3FXOxD8gWRY2elU Vc2Oacl2jPfDIZrVy0wFQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ckmF39JFUTw=:JYMFqTl+/vuUllTRQqe7mN wfKWqR+TRfoarZ0DVwFxOTUj0GPYEhid8ruhDW61RJ+4wG/8uADZk8De1/HJwJM4RrDN5KvWK PglIKzQ8f1vgVSLD9ZFgSpXylGU1TVUgwq3GvAMs/FJ969UzpqjgqlTb+MPSnRwDugByX1gHq gJRe33JaFKmBlsG1cUOvn4GXM0KWquABorRAIZbUfsDiDUp8Jhrl/YUMiIi7BiFFLZd99LAic YTjBna2HhoahW3W8S3okg2Nx2SRbU4VmeCSPYtWKaEb7A6+6tsqDSO0tigsS8U52N7S1Ruwpx y1+RtP4gSFxw8nWi9kvaJT3YLyX8uqbyCaEKAygCJEkL9/TMl2iAzI9UlAbmAcwCKAcoJbKVg zuX8jB+Tel8vbiDlDHfoAdc0/Gghqqtad2Z+uA0QWWUWj2kfwKYE2gyR0D58cpBQpIKYD5lv1 lKM/a90AlZEkr0X9d2OPfceAVmXNf7ds9dpdTXeH44TuOMJfuT4CKeECxtjZqUaZPoRieIWs7 o3QnfnC99XwH+JYdF0cb/72WcKicQKfVV3rsAGpDeYFxyyVj4AhSpYBajXCT0EhJYWLIPzb1x 0/FR7SpU2SyKic6J2o68vyIdb3SkcC1tituX/1fCIiwQapqZ5VWeQmU2ZOqxoEn1qCrqQox31 OdFZN8cKc15xXjoQqEnfSBWF+Yk4defv6AZNfcfRi65jK+HK+zxGiQLjvrXveFjOQDwoMrw+I oa52w+8590vnLHqesOMLGVGLTopMGjwXIhkmoRvDSzi1KMHksjNkAljtySaxRgqykyaM2zTad ANKDg55mHirrKqxpBZmqtAupDhZK3P7k5JRZmjgw7jGK91vlmSjVGkKnE/CL+UhSpo2Jbwdkb TcstBKS86NC5DbAQXXElwh2AI8/dyK8H7NV+KiQCGNxQoeNeXT1D8fsmOUuuIiqJh4kN8D0wy rIOW7ABCtt2zuwfZMKEiuQvSoPOMIvBV1IUll3mkyljeR5S8UVYkBi9DG1HJyXZfgDIiKy5bw DktfRqWJ25Lr3lekoTkHgXN7+TGCooCzoXgmHlr2cHdmPY4185EiW1bVgxfvBFUHWUQknPLRg hhBfMySA3fKWzk= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/1/22 07:26, 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 > --- > drivers/video/fbdev/pxa168fb.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/video/fbdev/pxa168fb.c b/drivers/video/fbdev/pxa168= fb.c > index c25739f6934d..d533c0bf7031 100644 > --- a/drivers/video/fbdev/pxa168fb.c > +++ b/drivers/video/fbdev/pxa168fb.c > @@ -618,7 +618,6 @@ static int pxa168fb_probe(struct platform_device *pd= ev) > > irq =3D platform_get_irq(pdev, 0); > if (irq < 0) { > - dev_err(&pdev->dev, "no IRQ defined\n"); > return -ENOENT; > } Please drop the surrounding braces then as well in both of your patches, e= .g. if (irq < 0) return -ENOENT; Helge