diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ata/libata-core.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index adfae9d1ceb1..deda68446b43 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -983,11 +983,6 @@ static u64 ata_hpa_resize(struct ata_device *dev) | |||
983 | else | 983 | else |
984 | hpa_sectors = ata_read_native_max_address(dev); | 984 | hpa_sectors = ata_read_native_max_address(dev); |
985 | 985 | ||
986 | /* if no hpa, both should be equal */ | ||
987 | ata_dev_printk(dev, KERN_INFO, "%s 1: sectors = %lld, " | ||
988 | "hpa_sectors = %lld\n", | ||
989 | __FUNCTION__, (long long)sectors, (long long)hpa_sectors); | ||
990 | |||
991 | if (hpa_sectors > sectors) { | 986 | if (hpa_sectors > sectors) { |
992 | ata_dev_printk(dev, KERN_INFO, | 987 | ata_dev_printk(dev, KERN_INFO, |
993 | "Host Protected Area detected:\n" | 988 | "Host Protected Area detected:\n" |
@@ -1009,7 +1004,11 @@ static u64 ata_hpa_resize(struct ata_device *dev) | |||
1009 | return hpa_sectors; | 1004 | return hpa_sectors; |
1010 | } | 1005 | } |
1011 | } | 1006 | } |
1012 | } | 1007 | } else if (hpa_sectors < sectors) |
1008 | ata_dev_printk(dev, KERN_WARNING, "%s 1: hpa sectors (%lld) " | ||
1009 | "is smaller than sectors (%lld)\n", __FUNCTION__, | ||
1010 | (long long)hpa_sectors, (long long)sectors); | ||
1011 | |||
1013 | return sectors; | 1012 | return sectors; |
1014 | } | 1013 | } |
1015 | 1014 | ||