drm/amd/display: remove redundant null check of array 'data'
authorColin Ian King <colin.king@canonical.com>
Fri, 15 Dec 2017 10:53:43 +0000 (10:53 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Dec 2017 22:15:09 +0000 (17:15 -0500)
commita89ff457d6f6200cd58db568c0138988bb60579c
tree553c0a7d72d8603073a64451e7b01bf1c5f26a6b
parenta7ea6548a5d3e458cd0ad0c41cea04eee64f1fb8
drm/amd/display: remove redundant null check of array 'data'

The null check on aconnector->base.edid_blob_ptr->data is redundant
since data is an array and can never be null.  Remove it.

Detected by CoverityScan, CID#1460369 ("Array compared against 0")

Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c