mirror of https://gitee.com/openkylin/linux.git
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
|
@ -174,9 +174,7 @@ static bool hdmi_14_process_transaction(
|
|||
link->ctx,
|
||||
link,
|
||||
&i2c_command);
|
||||
|
||||
if (buff)
|
||||
kfree(buff);
|
||||
kfree(buff);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue