Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2976785pxf; Sun, 14 Mar 2021 19:52:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzx+87tNvOv8mdLcRRVgfPSK1m6u01khvv9suSV8JrheGpTl746sgixNBdBGPGGnBnSlmKn X-Received: by 2002:a17:906:85b:: with SMTP id f27mr21747257ejd.414.1615776778419; Sun, 14 Mar 2021 19:52:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615776778; cv=none; d=google.com; s=arc-20160816; b=cPU6IA2A+/CFpKI+kwpeGxABshjp2OXqUcthAzSgXcB+vmwOqiYDk4XuIJB7RqXfpj OAI4TakuuSPE2Tnr/xmB36ulAFXaLtAesGbR/cs9F3IufsGHUOvLL9+ViYs7O44htEJW xRC7gAE2ZatTMjssA7ebumNLWtnC947TzBHHG9AW/XtBzFHIokjCyxAQiGVKSNc/v+Sm 516sbFMrr5Xuwnpu+Ou9VlWZMcJ5DkybuFZlkkS+fYq2Trhg9Wlz3FIez328xmG8Al7p dUkOBtCOwN1iTfbzoylN+WsQXyILc6nk5FhahPDocGcU/dI1mUM3DsswrbI3Cx7rUKGv uQwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=z0YCPf9NDsmYEWErYt2AysFfCFfxznPppGazCjg+aRY=; b=NmDDYdSPWPCIpNlsgdAhEV/rj23FKqmKmZyBP2pQnZluaXP29GN8xCb1z5N+OCQ4Nf IaZf5OW4VJbVzTMn0zlbkqtDxUfzu5srXnsaXiAsccaLCqWoarGUj3jBUNag9t095HCw Q7stvofQO+aMX6XpJsqY5hsmQiRF8sHabW/aNhO7lvc/jFBnCfxDW3sBvHUlKKw8jn1M ppGjlXkrn0otmMKxfnAPZc/7uUeenXZ3VFP0cKMzFBuaxvX5WmLu01ShTTKDp7x8VdNS sNYfmJ/uuEgjGMdrz3svPqZ6Q1Np22dJPN+VcWxxgTzNe0IUL7JisMzTYhiXYVimpiWB WxsA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a7si11434912edb.607.2021.03.14.19.52.36; Sun, 14 Mar 2021 19:52:58 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229787AbhCOCtG (ORCPT + 99 others); Sun, 14 Mar 2021 22:49:06 -0400 Received: from mail-m118208.qiye.163.com ([115.236.118.208]:38160 "EHLO mail-m118208.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbhCOCtE (ORCPT ); Sun, 14 Mar 2021 22:49:04 -0400 X-Greylist: delayed 569 seconds by postgrey-1.27 at vger.kernel.org; Sun, 14 Mar 2021 22:49:04 EDT Received: from vivo-HP-ProDesk-680-G4-PCI-MT.vivo.xyz (unknown [58.251.74.231]) by mail-m118208.qiye.163.com (Hmail) with ESMTPA id 74C50E0203; Mon, 15 Mar 2021 10:39:30 +0800 (CST) From: Wang Qing To: Jens Axboe , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Wang Qing Subject: [PATCH V3] ata: sata_highbank: delete redundant print and fix return value Date: Mon, 15 Mar 2021 10:39:14 +0800 Message-Id: <1615775955-4400-1-git-send-email-wangqing@vivo.com> X-Mailer: git-send-email 2.7.4 X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZQx9PGUIdQkgaGR5DVkpNSk5MTE5CTEtNQk9VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NhQ6GDo4Hz8OTFY*PCpWMDJR Vk0aCjZVSlVKTUpOTExOQkxKTk9CVTMWGhIXVQwaFRwKEhUcOw0SDRRVGBQWRVlXWRILWUFZTkNV SU5KVUxPVUlISllXWQgBWUFKTk9JNwY+ X-HM-Tid: 0a7833c0b5332c17kusn74c50e0203 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org platform_get_irq() has already checked and printed the return value, the printing here is nothing special, and should corrected to < 0. Also, thhe return value should return a real error. Signed-off-by: Wang Qing --- drivers/ata/sata_highbank.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/ata/sata_highbank.c b/drivers/ata/sata_highbank.c index 64b2ef1..4438ee6 --- 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"); - return -EINVAL; - } + if (irq < 0) + return irq; hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL); if (!hpriv) { -- 2.7.4