File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,6 @@ static void parse_attr_cb (G_GNUC_UNUSED SkDisk *d,
240240static BDSmartATA * parse_sk_data (SkDisk * d , GError * * error ) {
241241 SkBool good = FALSE;
242242 SkBool available = FALSE;
243- SkSmartOverall overall = SK_SMART_OVERALL_GOOD ;
244243 uint64_t power_on_msec = 0 ;
245244 const SkSmartParsedData * parsed_data ;
246245 BDSmartATA * data ;
@@ -276,9 +275,7 @@ static BDSmartATA * parse_sk_data (SkDisk *d, GError **error) {
276275 * sk_disk_smart_read_data() would've already returned an error.
277276 */
278277 data -> smart_enabled = TRUE;
279-
280- sk_disk_smart_get_overall (d , & overall );
281- data -> overall_status_passed = overall == SK_SMART_OVERALL_GOOD ;
278+ data -> overall_status_passed = good ;
282279
283280 switch (parsed_data -> offline_data_collection_status ) {
284281 case SK_SMART_OFFLINE_DATA_COLLECTION_STATUS_NEVER :
You can’t perform that action at this time.
0 commit comments