From f186ba60b3395e6609d5be3075a4b64dc0794dc4 Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Wed, 1 Mar 2006 01:25:38 +0900 Subject: [PATCH] --- yaml --- r: 21866 b: refs/heads/master c: 597afd21401c85bdf9441830abf431c2be6fd45f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/libata.h | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 7a0f675d780e..86da063c8abe 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 348edc59a8f9b9a66700781d972c24a46a79ae86 +refs/heads/master: 597afd21401c85bdf9441830abf431c2be6fd45f diff --git a/trunk/include/linux/libata.h b/trunk/include/linux/libata.h index 66b6847225df..22e86cb2d166 100644 --- a/trunk/include/linux/libata.h +++ b/trunk/include/linux/libata.h @@ -645,10 +645,14 @@ static inline unsigned int ata_tag_valid(unsigned int tag) return (tag < ATA_MAX_QUEUE) ? 1 : 0; } +static inline unsigned int ata_class_present(unsigned int class) +{ + return class == ATA_DEV_ATA || class == ATA_DEV_ATAPI; +} + static inline unsigned int ata_dev_present(const struct ata_device *dev) { - return ((dev->class == ATA_DEV_ATA) || - (dev->class == ATA_DEV_ATAPI)); + return ata_class_present(dev->class); } static inline u8 ata_chk_status(struct ata_port *ap)