Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1340212pxb; Wed, 2 Feb 2022 02:43:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBdrjAUeT0wMxNN/O+bLE6XMUdbVjL9Vuzt5ulO25rYLqXH1qxAutw+sjHXMZC/aHOpU2Z X-Received: by 2002:a05:6a00:15d5:: with SMTP id o21mr3233828pfu.9.1643798619940; Wed, 02 Feb 2022 02:43:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643798619; cv=none; d=google.com; s=arc-20160816; b=pvEDQ6v/kP1NRe5Io7O5z+Yc7jaQu6JQGzKWqTTJM0tRSDdKYihBCGWKd2WHWjZo+M zzzMFBjhiW4Rx2TGYcNfo/QLJJgIsXvCFMqgmOlaOlgbxOzTchdwlqf9lR1mQejQcwoE ZIjJWBVLrDNbnim4J/0H3KV5s4E7txKz7jM2MH1nxxrOa3zFfxQt4tQsTu5zDptrUtwO YyjS1Rm/lrSXTeGJthNnp9ZOGglllWkUSQL3pfJBo3bjFk4NvtHBoxaV6Vb+R65FzJtp fQhLNIb+NIxvzKnRsNkL7X3Oh2MsHcIlBRxTVuFdZHEq6U7IMGanzOJ02X3Cu29JxViX 8Yfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=dIbIrFblcLwsJaR34sXzvikwn4UDl8WcAX48RcWlhV4=; b=jCubFKZNwRrpLS+6KPJYn0Mys4jFOAAUvlqMKDhC+PWhp/W8WFp6A/zLeTDfSTN0xH aGLnzq71wiaDoSbLkdz9E49PIxNDtaJb2EqsyUmj/7IgyI9kOFfG/OkRdHaN0hp2skJb 5nUdViqZ2ZU8SQi8CKxCcWyGYmxq7u57OMW8B4b3KS7VHP9RbQyAVFd1nUKKBednd2qk gRxCeOlYutLy1ype7L4/IMIBmAvdkbZ8DK5xlD473ujyI2Hsw7rl5wDqjucCNtDNiM/a JRJ1WShMAhhyaYvhEVUxE002wlzKSCGN915OmQ48u1tIC9wPhDQdl+cXuY3JvDf1PqVZ GJyw== ARC-Authentication-Results: i=1; mx.google.com; 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=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e15si19268471pgn.856.2022.02.02.02.43.28; Wed, 02 Feb 2022 02:43:39 -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; 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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238111AbiBAMcJ (ORCPT + 99 others); Tue, 1 Feb 2022 07:32:09 -0500 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:59204 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237764AbiBAMcG (ORCPT ); Tue, 1 Feb 2022 07:32:06 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0V3NRSJD_1643718724; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0V3NRSJD_1643718724) by smtp.aliyun-inc.com(127.0.0.1); Tue, 01 Feb 2022 20:32:04 +0800 From: Yang Li To: deller@gmx.de Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 1/2 v2] video: fbdev: pxa168fb: Remove unnecessary print function dev_err() Date: Tue, 1 Feb 2022 20:32:01 +0800 Message-Id: <20220201123202.95055-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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/pxa168fb.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 *pdev) } irq = platform_get_irq(pdev, 0); - if (irq < 0) { - dev_err(&pdev->dev, "no IRQ defined\n"); + if (irq < 0) return -ENOENT; - } info = framebuffer_alloc(sizeof(struct pxa168fb_info), &pdev->dev); if (info == NULL) { -- 2.20.1.7.g153144c