[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200507110637.37341-1-yanaijie@huawei.com>
Date: Thu, 7 May 2020 19:06:37 +0800
From: Jason Yan <yanaijie@...wei.com>
To: <axboe@...nel.dk>, <b.zolnierkie@...sung.com>,
<linux-ide@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC: Jason Yan <yanaijie@...wei.com>
Subject: [PATCH] ata: return true in ata_is_host_link()
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 <yanaijie@...wei.com>
---
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
Powered by blists - more mailing lists