drm/amd/display: Remove unnecessary NULL check in commit_planes_for_stream()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 13 Jul 2022 11:33:37 +0000 (14:33 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Jul 2022 20:42:39 +0000 (16:42 -0400)
commit2d04559e0660cf503d4e46cfbd7421d0b6156aa1
tree96cd9efa0d4339d8c35a20f42772da3403493dce
parent133dc89c640f965c2736e70d8dec0699d763850d
drm/amd/display: Remove unnecessary NULL check in commit_planes_for_stream()

Smatch complains that:

    drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:3369 commit_planes_for_stream()
    warn: variable dereferenced before check 'stream' (see line 3114)

The 'stream' pointer cannot be NULL and the check can be removed.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c