diff options
-rw-r--r-- | src/4a-internals-hal/4a-internals-hal-cb.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/4a-internals-hal/4a-internals-hal-cb.c b/src/4a-internals-hal/4a-internals-hal-cb.c index a81871c..bab3c8c 100644 --- a/src/4a-internals-hal/4a-internals-hal-cb.c +++ b/src/4a-internals-hal/4a-internals-hal-cb.c @@ -1084,21 +1084,17 @@ int InternalHalHandleInfoGetResponse(afb_api_t apiHandle, json_object *currentRe return ret; } -int InternalHalHandleOneHalDependencies(afb_api_t apiHandle, struct InternalHalProbedDevice **halDeviceToProbe) +int InternalHalHandleOneHalDependencies(afb_api_t apiHandle, struct InternalHalProbedDevice *currentDeviceToProbe) { int ret, toReturn = 0; - struct InternalHalProbedDevice *currentDeviceToProbe; - json_object *probedDeviceGetInfoResponseJ = NULL; - if(! apiHandle || ! halDeviceToProbe || ! *halDeviceToProbe) { + if(! apiHandle || ! currentDeviceToProbe) { AFB_API_ERROR(apiHandle, "Invalid argument(s)"); return -1; } - currentDeviceToProbe = *halDeviceToProbe; - if(! currentDeviceToProbe->uid || ! currentDeviceToProbe->requestedDeviceJ) { AFB_API_ERROR(apiHandle, "Specified device to probe is not valid (uid or request is not specified)"); @@ -1197,7 +1193,7 @@ int InternalHalHandleHalDependencies(afb_api_t apiHandle, } if(validatedDepedency) { - ret = InternalHalHandleOneHalDependencies(apiHandle, &halCurrentDeviceToProbe); + ret = InternalHalHandleOneHalDependencies(apiHandle, halCurrentDeviceToProbe); if(ret < 0) { AFB_API_ERROR(apiHandle, "Error %i happened when tried to handle device to probe with uid:'%s' and request:'%s'", |