Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp634170ybj; Thu, 7 May 2020 04:09:46 -0700 (PDT) X-Google-Smtp-Source: APiQypIhOnNhBzyz03sK+ozu1Aca8pjpgrUwWRRVQLr0OjisILSaBs3QCZiY8ycF6PGdFPS3tqZx X-Received: by 2002:a17:906:5918:: with SMTP id h24mr11815668ejq.210.1588849786638; Thu, 07 May 2020 04:09:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588849786; cv=none; d=google.com; s=arc-20160816; b=lFM4akVx8KzcFZnTpRPTzBW3p1d/b4Q0TUAV4QaaJ73/fhd37yeZEr8L9S9RCs9OUp yHj2VM3WmJ6tmt3/uMB6r8B0DlyWP1rx1nzF0c+o5WJ6M1eTji0XqRBMGt5Q4jGr06Xd J79in6jquLsVqcnLV4ppW4mgtqFNgiAqpF1ZfezjPBtx2uKwZFfQOZCRwP5q1x6tVK+9 eRZjHr1Auve/ppluvm3Q2r1TDnElnHgYiGPUCnlu5ij7NhmbDH9KRj98j+B7lRKnfnH8 sIPVol6CYaEAMBbxKWh0bTldYK3wROgp2MjEycCONXMfJPppJI5P0UkL7Rdd68GZzzDj JmYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=OIhgYTLwdqXxARyWz4iFPVfeghQBFWBchzQ0Hzp6epg=; b=YvQS7FW9XOMrlzu2UbkSnb+CZ/6B3F8Vh2gdgx8GffRjYuu4ryCm/nbgD3b4EOCIRy CHBp/dK7Fc06STEoxIYAr2SgdMtzltaPFA2nzH8rccQJwiCk8J8v+knu9AEHoS0KifYC UVneT+MGNyeiBAd+00UgVps9aWAmof69zxFtf2XRnugfsRG7h2rl9NHiyJJXDJlSgNFE GTHOCsucpTAkTlNHUNSO+qaBlU8P4fXwEnEJ68mCIQfZ+QQF7XCElM7mA1bsG8B5990V eYXhiQqqm+Lm5G/ulbELGxVO8RcVmT9rOo8+rHBGOrYudRkr9Tl2hZb8BfEB4xw6X8Va zOmQ== 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 r9si2125300edm.519.2020.05.07.04.09.22; Thu, 07 May 2020 04:09:46 -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 S1726476AbgEGLH3 (ORCPT + 99 others); Thu, 7 May 2020 07:07:29 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:38726 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725949AbgEGLH3 (ORCPT ); Thu, 7 May 2020 07:07:29 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id A3436C3DCBDDF1752CA0; Thu, 7 May 2020 19:07:26 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Thu, 7 May 2020 19:07:16 +0800 From: Jason Yan To: , , , CC: Jason Yan Subject: [PATCH] ata: return true in ata_is_host_link() Date: Thu, 7 May 2020 19:06:37 +0800 Message-ID: <20200507110637.37341-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: include/linux/libata.h:1446:8-9: WARNING: return of 0/1 in function 'ata_is_host_link' with return type bool Signed-off-by: Jason Yan --- include/linux/libata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/libata.h b/include/linux/libata.h index 8bf5e59a7859..e05a8ed2e31e 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h @@ -1443,7 +1443,7 @@ static inline bool sata_pmp_attached(struct ata_port *ap) static inline bool ata_is_host_link(const struct ata_link *link) { - return 1; + return true; } #endif /* CONFIG_SATA_PMP */ -- 2.21.1