]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit92bbad90a27533ec697e4f222c13d174b888293f
tree96cd9efa0d4339d8c35a20f42772da3403493dce
parentf7e8de4667d19eeb5af0204af117c4eed81c7c8a
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