fixed cppcheck errors (old values not used)
authorJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 10 Dec 2012 08:30:05 +0000 (08:30 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 10 Dec 2012 08:30:05 +0000 (08:30 +0000)
src/lib/amd.c
src/lib/psensor.c

index 2401038..830e96b 100644 (file)
@@ -140,7 +140,7 @@ static int init()
        int i, inumberadapters, inumberadaptersactive = 0;
        int lpstatus, iadapterindex;
 
-       hdll = NULL;
+       hdll;
        adl_main_control_done = 0;
        active_adapters = NULL;
        hdll = dlopen("libatiadlxx.so", RTLD_LAZY|RTLD_GLOBAL);
index c399544..fdc84f2 100644 (file)
@@ -402,7 +402,7 @@ double get_max_temp(struct psensor **sensors)
 
 struct psensor **get_all_sensors(int use_libatasmart, int values_max_length)
 {
-       struct psensor **psensors = NULL;
+       struct psensor **psensors;
        struct psensor **tmp_psensors;
 
        psensors = lmsensor_psensor_list_add(NULL, values_max_length);