dc.c:use kzalloc without test
authorzhongshiqi <zhong.shiqi@zte.com.cn>
Wed, 23 Oct 2019 08:32:23 +0000 (16:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Oct 2019 15:19:00 +0000 (11:19 -0400)
commit039ffeaae307d61318742e0b2f79742e08ea6b8b
tree99e289fd89f78c7b3d17419158966168d9e2ca63
parentb69cd5dd019a474fb445651d5461a8d5e2301ea9
dc.c:use kzalloc without test

dc.c:583:null check is needed after using kzalloc function

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: zhongshiqi <zhong.shiqi@zte.com.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c