From: Jean-Philippe Orsini Date: Mon, 10 Dec 2012 08:30:05 +0000 (+0000) Subject: fixed cppcheck errors (old values not used) X-Git-Tag: v0.8.0.5~181 X-Git-Url: http://wpitchoune.net/gitweb/?a=commitdiff_plain;h=e3b3247d1e0835796923d7e8f494e6fd929da1aa;p=psensor.git fixed cppcheck errors (old values not used) --- diff --git a/src/lib/amd.c b/src/lib/amd.c index 2401038..830e96b 100644 --- a/src/lib/amd.c +++ b/src/lib/amd.c @@ -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); diff --git a/src/lib/psensor.c b/src/lib/psensor.c index c399544..fdc84f2 100644 --- a/src/lib/psensor.c +++ b/src/lib/psensor.c @@ -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);