libata: return boolean values from ata_is_*
authorChristoph Hellwig <hch@lst.de>
Thu, 14 Jul 2016 00:05:42 +0000 (09:05 +0900)
committerTejun Heo <tj@kernel.org>
Thu, 14 Jul 2016 14:44:51 +0000 (10:44 -0400)
commitb1c04e80c6da5f5d3d4778ede23c59666135fdeb
treefcd51c4ed47d0c428da9c0dcb7e27341fc2fafd3
parent2983860c766870b701c4a34f435c1e18db086244
libata: return boolean values from ata_is_*

This way we don't have to worry about the exact bit postition of the
test to leak out and any crazy propagation effects in the callers.

Suggested-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/libata.h