]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: remove redundant null pointer check before kfree
authorzhong jiang <zhongjiang@huawei.com>
Wed, 30 Oct 2019 01:57:53 +0000 (09:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Oct 2019 15:07:13 +0000 (11:07 -0400)
commitaf2f359b3d7b7bdcb68e4ccce45620ae8adbd3d4
treebce6869bdb4b3842af8193c7cd39c5c8b4c72609
parent451a7c42d2444f28e6feca08f515fc33e3d16aec
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>
drivers/gpu/drm/amd/display/dc/hdcp/hdcp_msg.c