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

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
......@@ -174,8 +174,6 @@ static bool hdmi_14_process_transaction(
link->ctx,
link,
&i2c_command);
if (buff)
kfree(buff);
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