Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp129572rdb; Thu, 24 Aug 2023 00:52:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGS0OlYUy9qoC8Vo0bTkHjv18PsyZIZwFV3mGtFf9Fqt6OcOVVWL+1LFFEG1ed+s34Sa62b X-Received: by 2002:a17:906:28c:b0:99d:fcb7:60db with SMTP id 12-20020a170906028c00b0099dfcb760dbmr17180706ejf.16.1692863563001; Thu, 24 Aug 2023 00:52:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692863562; cv=none; d=google.com; s=arc-20160816; b=UhHikIikvqsSfh81NEbrsAATSdlpJqMUiSCRzQUEovUg5PCwayUgOIcypipMJ69Fgg baUu2r4lhGvcjY8Ue8V45Gs9YHOpscZzOmrw3rrzGoehTikhMyxUPsyGqDHLyyI3PBeT IpT0YBxUDZ2JYH5bU4yOwJOYRnwC5i2uUirRqigCMEjkT86OyNyHfXrSSFYRf/YOVpa6 beihb5llxGW/ZI3dAH4yFpAY32uu3ibd7819ToVQ+9gDWHdIAl/r/V6IYyuqNic94i25 Wa/raaNYykMPqPcgGjKTvnx0uXQ6YtWCdcFfydBeDlhNIuhiJq2ZT7W0b4rTecR5gjJl VL8A== 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=U0DKMkAI4wyFhjHW06+mQA4luJEoBYm4OzTQ//8IUtw=; fh=trJJyLARxJKpAnAgoX/4xrdwtjrsXD9YGPI5V6kzBKQ=; b=Rn0RqUCl4HQQeLzJaB5e6IeL4lFosj2D+raf/3qFaN5J84EowMyTFBu5ita7FsLZGW r96wKDQekyuVnaj/ioQKfdqdwljuAaTxaVunjf/rbYTFac0KR26QiHCzwVZXx8bNcFHk sr5cCnuf9dCxFueddTMGF1gbMyM0RSazHNCrF8BmUBVI+fm8I0Yip9XAXxlhW/k1GZUq ivONpTIU7pTOfowKDDPsDDXk+7Np3Ob9kuFUr4qUF6liMtvOBK6GAM57tIGbznHVR/6t BFehtnEnwMjogVHZ+nTPI7wGweKW4gpIrV56bsjBxJdzGc2H47km5Ma/HXrMYW8JxDZj gcPw== 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 q26-20020a170906a09a00b00996d0a9b50csi10470566ejy.234.2023.08.24.00.52.16; Thu, 24 Aug 2023 00:52:42 -0700 (PDT) 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 S239251AbjHXCfK (ORCPT + 99 others); Wed, 23 Aug 2023 22:35:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235833AbjHXCee (ORCPT ); Wed, 23 Aug 2023 22:34:34 -0400 Received: from out30-98.freemail.mail.aliyun.com (out30-98.freemail.mail.aliyun.com [115.124.30.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B884B1AD; Wed, 23 Aug 2023 19:34:31 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VqS2PLa_1692844458; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VqS2PLa_1692844458) by smtp.aliyun-inc.com; Thu, 24 Aug 2023 10:34:28 +0800 From: Jiapeng Chong To: vkoul@kernel.org Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] dmaengine: fsl-edma: Remove unnecessary print function dev_err() Date: Thu, 24 Aug 2023 10:34:17 +0800 Message-Id: <20230824023417.120236-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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. ./drivers/dma/fsl-edma-main.c:234:3-10: line 234 is redundant because platform_get_irq() already prints an error. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6208 Signed-off-by: Jiapeng Chong --- drivers/dma/fsl-edma-main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/dma/fsl-edma-main.c b/drivers/dma/fsl-edma-main.c index 63d48d046f04..d493dddd55b1 100644 --- a/drivers/dma/fsl-edma-main.c +++ b/drivers/dma/fsl-edma-main.c @@ -230,10 +230,8 @@ static int fsl_edma3_irq_init(struct platform_device *pdev, struct fsl_edma_engi /* request channel irq */ fsl_chan->txirq = platform_get_irq(pdev, i); - if (fsl_chan->txirq < 0) { - dev_err(&pdev->dev, "Can't get chan %d's irq.\n", i); + if (fsl_chan->txirq < 0) return -EINVAL; - } ret = devm_request_irq(&pdev->dev, fsl_chan->txirq, fsl_edma3_tx_handler, IRQF_SHARED, -- 2.20.1.7.g153144c