]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: remove redundant null pointer check before kfree
authorzhong jiang <zhongjiang@huawei.com>
Fri, 21 Sep 2018 13:12:11 +0000 (21:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Sep 2018 02:09:12 +0000 (21:09 -0500)
commit6b6115fbbac86f6bc1e41bbce5c8afc47f3bcb63
tree5b90fa9b5cb0dca9017c3e4ed054cd9acb2bcd71
parentd162ab416f1b213676f7309bf2b2cae10a07f953
drm/amd/display: remove redundant null pointer check before kfree

kfree has taken the null pointer into account. hence it is safe
to remove the redundant null pointer check before kfree.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/stats/stats.c