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)
commit5e8f5477f9d2819ea949dec4e9a68a34c7810989
treebce6869bdb4b3842af8193c7cd39c5c8b4c72609
parent46203a508f64b4bfa150a9d25eab1dc891e7e650
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