Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2340867pxb; Thu, 4 Nov 2021 18:58:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN9pysTcV1ZV2aCObWn1vFqq2nVe0ULT96PNAXe9btDPCHSq/X3XT5Blf/3OrK/fZo4l89 X-Received: by 2002:a17:907:7d88:: with SMTP id oz8mr8794038ejc.173.1636077486155; Thu, 04 Nov 2021 18:58:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636077486; cv=none; d=google.com; s=arc-20160816; b=U2uZH1CInxb+FaI3MF/MOl+ijwkdNJxStK1ixmuS0yeZC6hT+6WkmAmjoun897iJjx An1UMjBjQSznvbT7v060DRDuJKGFSlKdxnG7i+iV2P8HIPbZ/kOR4wjZ6fKuzB4gMvs9 RV+m/f20J1rXddpqEPQWyZ30vfbktqZ28sWa94MQxv3dH/Hw9/RuUxwl0PCPvFu2gPHf b0ArAfg/VH9WWCuPGFO/+jZoSErEq3tfpGAHNGaEec/uiTm4hTIRvMxuTgvpNQhTWScA Cs6+sBSO3k7DTWtbTxwoMxIfRpa6dnT3Mfypofo4MSQjbMJ4jhR7qOERvbgD5AL5KgP4 40FA== 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=QWL1CSKC46ZFlmCfvNrHhbmTP+3JVpAPkXCRfQWJQYU=; b=vdGk+uov45bVwMABv8JvpunBGzpKeR+CVwK6d2mErEXbG13KRwaQTKuagpfwqjK1lr f0Sy+rzUgjvtB9q0kDWb2jjRpvnHbW+50PQnbx7T4p68ZIbwVH8zU+j4viCZJdOTVBfT 44qaoGTM32twig5kmoM5GPftoZr+Kuc+AVhB4k4mt/3Gm5He0virxVUDkOfPYCZAibf6 UEW6uhd28WgME5bkixj7HnycQS69kOCBaO4eHRNCDiZyQTUzGizM9GaLD/g3BRGDHuQw cBIfQ4WpeOHd9EpMGJyStVGTIafCqJCfYTq/V377oFsyIY/tLJoW0x55csru8GSH7n+l CJ6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lb3si9736053ejc.522.2021.11.04.18.57.42; Thu, 04 Nov 2021 18:58:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230179AbhKEBx3 (ORCPT + 99 others); Thu, 4 Nov 2021 21:53:29 -0400 Received: from smtp21.cstnet.cn ([159.226.251.21]:44568 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231441AbhKEBx1 (ORCPT ); Thu, 4 Nov 2021 21:53:27 -0400 Received: from localhost.localdomain (unknown [124.16.141.244]) by APP-01 (Coremail) with SMTP id qwCowADXcCHgjYRhzK6SBg--.62978S2; Fri, 05 Nov 2021 09:50:25 +0800 (CST) From: Xu Wang To: damien.lemoal@opensource.wdc.com Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ata: sata_highbank: Remove unnecessary print function dev_err() Date: Fri, 5 Nov 2021 01:50:21 +0000 Message-Id: <20211105015021.38998-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: qwCowADXcCHgjYRhzK6SBg--.62978S2 X-Coremail-Antispam: 1UD129KBjvdXoWrZrWrWF45tw4DJF48Ww45Jrb_yoWxCFc_t3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-ID: X-Mailing-List: linux-kernel@vger.kernel.org The print function dev_err() is redundant because platform_get_irq() already prints an error. Signed-off-by: Xu Wang --- drivers/ata/sata_highbank.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/ata/sata_highbank.c b/drivers/ata/sata_highbank.c index 8440203e835e..b29d3f1d64b0 100644 --- a/drivers/ata/sata_highbank.c +++ b/drivers/ata/sata_highbank.c @@ -469,10 +469,8 @@ static int ahci_highbank_probe(struct platform_device *pdev) } irq = platform_get_irq(pdev, 0); - if (irq < 0) { - dev_err(dev, "no irq\n"); + if (irq < 0) return irq; - } if (!irq) return -EINVAL; -- 2.25.1