Commit 5e8f5477 authored by zhong jiang's avatar zhong jiang Committed by Alex Deucher
Browse files

drm/amd/display: remove redundant null pointer check before kfree



kfree has taken null pointer into account. hence it is safe to remove
the unnecessary check.

Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 46203a50
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -174,8 +174,6 @@ static bool hdmi_14_process_transaction(
			link->ctx,
			link,
			&i2c_command);

	if (buff)
	kfree(buff);

	return result;