]> 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)
commitb86241d2d075f15bece7c5b7133f1c81f95123e6
treebce6869bdb4b3842af8193c7cd39c5c8b4c72609
parent6c78d27c02e075c8ed1dc282b5239e9814e4011f
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