From 075ac78a8ba52632a46335e45bc02ae0c9736c15 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 11 Oct 2011 23:29:10 +0200 Subject: atasmart: sector field can never be larger then 48 bits, so no point in comparing with (uint64_t) -1 --- atasmart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'atasmart.c') diff --git a/atasmart.c b/atasmart.c index f3c8e32..c0c0ac3 100644 --- a/atasmart.c +++ b/atasmart.c @@ -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; -- cgit