atasmart: sector field can never be larger then 48 bits, so no point in comparing...
authorLennart Poettering <lennart@poettering.net>
Tue, 11 Oct 2011 21:29:10 +0000 (23:29 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 11 Oct 2011 21:29:10 +0000 (23:29 +0200)
atasmart.c

index f3c8e32..c0c0ac3 100644 (file)
@@ -1274,7 +1274,7 @@ static void verify_sectors(SkDisk *d, SkSmartAttributeParsedData *a) {
         max_sectors = d->size / 512ULL;
 
         if (a->pretty_value == 0xffffffffULL ||
-            a->pretty_value == 0xffffffffffffffffULL ||
+            a->pretty_value == 0xffffffffffffULL ||
             (max_sectors > 0 && a->pretty_value > max_sectors)) {
                 a->pretty_value = SK_SMART_ATTRIBUTE_UNIT_UNKNOWN;
                 d->attribute_verification_bad = TRUE;