aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorJing Yangyang <jing.yangyang@zte.com.cn>2021-08-23 23:07:02 -0700
committerJens Axboe <axboe@kernel.dk>2021-08-24 10:11:21 -0600
commit62283c6c9d4c1018badcd0b9c5b6ca66d978fa0d (patch)
treed627174a7cabe949d5dee49c69eeb73bcfc230a2 /include/linux/libata.h
parentdocs: sysfs-block-device: document ncq_prio_supported (diff)
downloadlinux-dev-62283c6c9d4c1018badcd0b9c5b6ca66d978fa0d.tar.xz
linux-dev-62283c6c9d4c1018badcd0b9c5b6ca66d978fa0d.zip
include:libata: fix boolreturn.cocci warnings
./include/linux/libata.h:1462:8-9:WARNING: return of 0/1 in function 'ata_is_host_link' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Jing Yangyang <jing.yangyang@zte.com.cn> Link: https://lore.kernel.org/r/20210824060702.59006-1-deng.changcheng@zte.com.cn Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index a2d1bae7900b..860e63f5667b 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -1459,7 +1459,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 */