Re: [PATCH] drm/amd/display: Remove unnecessary NULL check in commit_planes_for_stream()

2022-07-14 Thread Alex Deucher
Applied. Thanks! Alex On Wed, Jul 13, 2022 at 7:34 AM Dan Carpenter wrote: > > 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

[PATCH] drm/amd/display: Remove unnecessary NULL check in commit_planes_for_stream()

2022-07-13 Thread Dan Carpenter
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 ---