Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent 004e29cc
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;
+1 −2
Original line number Diff line number Diff line
@@ -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;