diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-10-11 23:29:10 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-10-11 23:29:10 +0200 |
commit | 075ac78a8ba52632a46335e45bc02ae0c9736c15 (patch) | |
tree | e16f8813ac6b6d997efd102be49d6b55ecce370c | |
parent | 1dad47cdbc538e7347d953ed157073a64503256c (diff) | |
download | libatasmart-075ac78a8ba52632a46335e45bc02ae0c9736c15.tar.gz |
atasmart: sector field can never be larger then 48 bits, so no point in comparing with (uint64_t) -1
-rw-r--r-- | atasmart.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |