From patchwork Thu Mar 10 00:22:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiapeng Chong X-Patchwork-Id: 12775722 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4F9D6C433F5 for ; Thu, 10 Mar 2022 00:24:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Zx5t4/PqLlDQttecv//ounR4YsG9DzgXHzR2FwVDcXs=; b=v8Kv1kj3+SLL5u 1kE79whzOLsHPXMPBx51ZUBk8M4k1Rf73K5NHcSjLv+DaOgkGz+MpAKRGTq24zW0dhDtF+kylr6ZL ZNcvhWDv3nft3Zo/K10oCtCi0uLTdHiHcPaa+LYt0v7x5I8zUYKbSzlazIW/DJ7fatUYkEVUNCMXR 4hXXfMxqaUB4TI2kRpbQt69a6LGRlAFfrKbsxCg6+hBDwEOOE6fMeKR3PMAGcW4h2ToK6CQu1o/L8 B9qHzNz6uP6MmcxIUMrBfILIItV/Hp7gFHK6ESGqP7ANQsP/yXak5Dti+PR4nE0mhl5TqiyaG30c6 N8QD8bRRl0hCztNBCdQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nS6Zl-00AsGY-NI; Thu, 10 Mar 2022 00:22:41 +0000 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nS6Zh-00AsGB-Lz for linux-arm-kernel@lists.infradead.org; Thu, 10 Mar 2022 00:22:39 +0000 X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R361e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e04395; MF=jiapeng.chong@linux.alibaba.com; NM=1; PH=DS; RN=13; SR=0; TI=SMTPD_---0V6m-sN5_1646871744; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0V6m-sN5_1646871744) by smtp.aliyun-inc.com(127.0.0.1); Thu, 10 Mar 2022 08:22:30 +0800 From: Jiapeng Chong To: codrin.ciubotariu@microchip.com Subject: [PATCH] ASoC: atmel: mchp-pdmc: Remove unnecessary print function dev_err() Date: Thu, 10 Mar 2022 08:22:21 +0800 Message-Id: <20220310002221.125448-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220309_162237_943387_64582EF9 X-CRM114-Status: UNSURE ( 8.06 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jiapeng Chong , alexandre.belloni@bootlin.com, alsa-devel@alsa-project.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, Abaci Robot , tiwai@suse.com, broonie@kernel.org, perex@perex.cz, claudiu.beznea@microchip.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The print function dev_err() is redundant because platform_get_irq() already prints an error. Eliminate the follow coccicheck warning: ./sound/soc/atmel/mchp-pdmc.c:991:2-9: line 991 is redundant because platform_get_irq() already prints an error. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong Reviewed-by: Codrin Ciubotariu --- sound/soc/atmel/mchp-pdmc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/atmel/mchp-pdmc.c b/sound/soc/atmel/mchp-pdmc.c index c44636f6207d..2b48bd3434c7 100644 --- a/sound/soc/atmel/mchp-pdmc.c +++ b/sound/soc/atmel/mchp-pdmc.c @@ -988,7 +988,6 @@ static int mchp_pdmc_probe(struct platform_device *pdev) irq = platform_get_irq(pdev, 0); if (irq < 0) { - dev_err(dev, "failed to get irq: %d\n", irq); return irq; }