Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2723135pxb; Thu, 3 Feb 2022 12:47:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIRHsxkdez7Y3VjpeF8FUTAne9XLs1NThzMLXOkHFDQuczWI0gywhNHXrU7U2GC5DkYthe X-Received: by 2002:a17:907:2ce6:: with SMTP id hz6mr30873387ejc.89.1643921249798; Thu, 03 Feb 2022 12:47:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643921249; cv=none; d=google.com; s=arc-20160816; b=aYIR2n59pdUICw5A7JJIu8pF0e5c1q9wDJUi/TOzZZH91uH6praYtoOq5oQPoZkaYt L+0hepZXeHQUVELWOVHwXxm5C+wxoQFl0UyUqGv/KHDRkTA3/SAtDXpx79KlHQHuHJNi RYN9wQqhlWOgEmBUaNxgw8IAsYWo7HYfPD9mYH7D8T1uO+6Kkqs/XqoAUUYns0ecQnyF OY02o8wxrGBHNVvRrNqJEToIcx/ZWJBnwYa7QM++yVZnlNCWweGQl3wbm948vdDAXVi9 vh4XJ/KzBXrNrs+r77l6SLzdYkymAT7U25WKhHXmZzdFp9lAXWVh/rphbjdwC3OXiTsN A5AQ== 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=5lbR8sJwlOmOQz8JD+ZYbRRANDhfY/5pV3UDH1E4sSY=; b=vqUzWqgZHW1+ZgG/yeYS68MMaDrgo/V6N8cbRRZlLKb8js64YF/Pp014yiPfsBu7Dc MKsK7Vb1F6EL7cchV06+uqnrA6RsVrAzAPu6YXtNr862oeDxdg4qmxfADOk/jgR1wMsd 0mkmPDbwWzN3f45ns61cSfcePn+JonzWfrSs/fLY0YkIKwkDw/OG9bcl3/dmk65mfdLb rPsvSEn8YxvizFUKXZ5M6rt+GAwrxZaRAwhYfbhF28xvawdJyKnZWL9QhfqCZJgNzo2Y hN7w+n518QYVsVY9y08+8NKAsoz8VCiHVs8xXYj4RK7+iNCWTa33+mfkfciRjhmbmLV9 bmxQ== 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 g9si14623391edt.243.2022.02.03.12.47.05; Thu, 03 Feb 2022 12:47:29 -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 S233907AbiBAGIJ (ORCPT + 99 others); Tue, 1 Feb 2022 01:08:09 -0500 Received: from out30-42.freemail.mail.aliyun.com ([115.124.30.42]:36415 "EHLO out30-42.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229866AbiBAGIB (ORCPT ); Tue, 1 Feb 2022 01:08:01 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0V3MZg10_1643695678; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0V3MZg10_1643695678) by smtp.aliyun-inc.com(127.0.0.1); Tue, 01 Feb 2022 14:07:59 +0800 From: Yang Li To: mirela.rabulea@nxp.com Cc: mchehab@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, linux-imx@nxp.com, kernel@pengutronix.de, festevam@gmail.com, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] media: imx-jpeg: Remove unnecessary print function dev_err() Date: Tue, 1 Feb 2022 14:07:57 +0800 Message-Id: <20220201060757.89837-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/media/platform/imx-jpeg/mxc-jpeg.c:2025:3-10: line 2025 is redundant because platform_get_irq() already prints an error Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/media/platform/imx-jpeg/mxc-jpeg.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/imx-jpeg/mxc-jpeg.c b/drivers/media/platform/imx-jpeg/mxc-jpeg.c index fed762491379..77c5134739ea 100644 --- a/drivers/media/platform/imx-jpeg/mxc-jpeg.c +++ b/drivers/media/platform/imx-jpeg/mxc-jpeg.c @@ -2022,7 +2022,6 @@ static int mxc_jpeg_probe(struct platform_device *pdev) for (slot = 0; slot < MXC_MAX_SLOTS; slot++) { dec_irq = platform_get_irq(pdev, slot); if (dec_irq < 0) { - dev_err(&pdev->dev, "Failed to get irq %d\n", dec_irq); ret = dec_irq; goto err_irq; } -- 2.20.1.7.g153144c