fix return of uninitialized variable
[platform/upstream/libatasmart.git] / atasmart.c
index 3ff0334..d39e704 100644 (file)
@@ -2579,6 +2579,7 @@ static int init_smart(SkDisk *d) {
         }
 
         disk_smart_read_thresholds(d);
+        ret = 0;
 
 fail:
         return ret;