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: Harry Wentland <harry.wentland@amd.com> Signed-off-by: zhong jiang <zhongjiang@huawei.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
46203a508f
commit
5e8f5477f9
1 changed files with 1 additions and 3 deletions
|
@ -174,9 +174,7 @@ static bool hdmi_14_process_transaction(
|
||||||
link->ctx,
|
link->ctx,
|
||||||
link,
|
link,
|
||||||
&i2c_command);
|
&i2c_command);
|
||||||
|
kfree(buff);
|
||||||
if (buff)
|
|
||||||
kfree(buff);
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue