mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 01:24:12 +08:00
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
Block a user