Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1480242pxb; Wed, 2 Feb 2022 06:02:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiK4Nckl1FoRro6i6+yiLskH+Z0myAE98t+JnO3mqQjbvlwgBJWRaKsf9K+1PlOSRPPXgM X-Received: by 2002:a63:d711:: with SMTP id d17mr24591658pgg.429.1643810550878; Wed, 02 Feb 2022 06:02:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643810550; cv=none; d=google.com; s=arc-20160816; b=x7UJCcq9y8LHMrIHcpr4VB7QUkEbLyfF4vUrEPgUBwJ1rEEo4Hb1TCq4NBeeW+/mPS QR8p+F0cCghujymCizHPWtgUT8wSa94JoU1obzcCH4ByQhYoDn49ae6OysSTvYK8oEPc R2Ee5Vx/Wk89ISbMRfye2B/Zbs6FItonW9k+MeN7Ozv4acLO2eThGFHIJaoo7GThg6gA CUDDxSQOx1CpnRoWO04wXDYegPVUfYK/eDhHmJo1nrMhpz9/JNmBPwDzeIoDFcn84rzz WVbsh+PNVXQDjMsQh5pEI5/XaU0SeKDNM2aIRb2XyPU88P9A3RUP0sxklLkIrnokLgIN K7eA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=wgc18zpEMDegTg9k74OAc//eKgI/HsAdPdsg2nqu9qA=; b=KjIbUz9CKXPJ9b8ei0VjmYWwgmu2qu4/JLLSos2QCXScxvv+nwRNlymXJhJJeTIYJE 7EpIADi8Sg2Sy4KGYlGjKVPrx55v9i3WniEbhmbmOuTNjTslZ258PJyT2Vvdd10cYxPo EQlaOf7PiprVFe74BW2FlEAEEXLwnVCriumf1HalsZp7CyijIsaMxOwY+Z3jneOtrtbF L3GjS3BKywXiFOs/D0cBCQzfesr9ZWeMNeDs+xD1yzekGQPrG6mOzuaFZveuEYgahFcN w52CG/piDeB2+/m8BW0X/VovLqkuKziPgsGKVXSl+EnMx02inMDHAFKOT6utWdw5l1Y5 bu/A== 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 t189si19720419pgd.166.2022.02.02.06.02.18; Wed, 02 Feb 2022 06:02:30 -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 S238122AbiBAMcK (ORCPT + 99 others); Tue, 1 Feb 2022 07:32:10 -0500 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:43830 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237766AbiBAMcJ (ORCPT ); Tue, 1 Feb 2022 07:32:09 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04357;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0V3NRSJb_1643718726; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0V3NRSJb_1643718726) by smtp.aliyun-inc.com(127.0.0.1); Tue, 01 Feb 2022 20:32:07 +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 2/2 v2] video: fbdev: pxa3xx-gcu: Remove unnecessary print function dev_err() Date: Tue, 1 Feb 2022 20:32:02 +0800 Message-Id: <20220201123202.95055-2-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20220201123202.95055-1-yang.lee@linux.alibaba.com> References: <20220201123202.95055-1-yang.lee@linux.alibaba.com> 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/pxa3xx-gcu.c:615:2-9: line 615 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/pxa3xx-gcu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/pxa3xx-gcu.c b/drivers/video/fbdev/pxa3xx-gcu.c index 9239ecd34169..350b3139c863 100644 --- a/drivers/video/fbdev/pxa3xx-gcu.c +++ b/drivers/video/fbdev/pxa3xx-gcu.c @@ -611,10 +611,8 @@ static int pxa3xx_gcu_probe(struct platform_device *pdev) /* request the IRQ */ irq = platform_get_irq(pdev, 0); - if (irq < 0) { - dev_err(dev, "no IRQ defined: %d\n", irq); + if (irq < 0) return irq; - } ret = devm_request_irq(dev, irq, pxa3xx_gcu_handle_irq, 0, DRV_NAME, priv); -- 2.20.1.7.g153144c