include:libata: fix boolreturn.cocci warnings
authorJing Yangyang <jing.yangyang@zte.com.cn>
Tue, 24 Aug 2021 06:07:02 +0000 (23:07 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 24 Aug 2021 16:11:21 +0000 (10:11 -0600)
commit62283c6c9d4c1018badcd0b9c5b6ca66d978fa0d
treed627174a7cabe949d5dee49c69eeb73bcfc230a2
parentf5975d18d46ae8485bb08161086e59360844840b
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>
include/linux/libata.h