libata: use ata_tag_internal() consistently
Some check for the value directly, use the provided helper instead. Also make it return a bool, since that's what it does. Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
@@ -1491,7 +1491,7 @@ static inline unsigned int ata_tag_valid(unsigned int tag)
|
||||
return (tag < ATA_MAX_QUEUE) ? 1 : 0;
|
||||
}
|
||||
|
||||
static inline unsigned int ata_tag_internal(unsigned int tag)
|
||||
static inline bool ata_tag_internal(unsigned int tag)
|
||||
{
|
||||
return tag == ATA_TAG_INTERNAL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user