Commit a698e417 authored by Edward O'Callaghan's avatar Edward O'Callaghan Committed by Alex Deucher

drivers/amdgpu: Remove redundant NULL check before kfree()

Found-by: Coccinelle
Signed-off-by: default avatarEdward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: default avatarTom St Denis <tom.stdenis@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 004e29cc
......@@ -1065,7 +1065,6 @@ static int amdgpu_cgs_acpi_eval_object(struct cgs_device *cgs_device,
}
error:
if (obj != NULL)
kfree(obj);
kfree((void *)input.pointer);
return result;
......
......@@ -77,7 +77,6 @@ int phm_dispatch_table(struct pp_hwmgr *hwmgr,
result = phm_run_table(hwmgr, rt_table, input, output, temp_storage);
if (NULL != temp_storage)
kfree(temp_storage);
return result;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment